p tags for Paragraphs

It structures text in a web page as it defines a paragraph. The <p> element creates some space before and after itself. Text written in between the <p> tags is treated as a paragraph of text as shown.

The p Tags for Paragraphs

HTML code
<p>This is first paragraph of text.</p>
<p>This is second paragraph of text.</p>
<p>This is third paragraph of text.</p>
Browser output

The <p> tag has attributes align, class, id, style, title, dir, lang and xml:lang. Align attribute is
same as that for <hn> tags

Apply for HTML Certification

https://www.vskills.in/certification/certified-html-designer

Back to Tutorials

Share this post
[social_warfare]
UI Events
br tag for Line Breaks

Get industry recognized certification – Contact us

keyboard_arrow_up