Paragraph



Html Paragraph


Paragraph is a distinct section of a piece of writing. In Html paragraphs are define by <p> tag. The <p> element offers a way to structure your text. Each paragraph of text should go in between an opening <p> and closing </p> tag.


Most browsers will display Html correctly even if you forget the end tag but future version of Html will not allow you to skip end tags.







Html <p> Elements



<p> example

<p> This is first paragraph of text </p>


<p> This is second paragraph of text </p>









Html align Attribute


The align attribute is supported in all major browsers. The align attribute specifies the alignment of the text within a paragraph.







Align Attribute Values




















Value Description
leftLeft aligned the text of a paragraph.
rightRight aligned the text of a paragraph.
centerCenter aligned the text of a paragraph.
justifyStretches the lines so that each line has equal width from both side like in newspapers and magazines.




<p> align example

<p align="left"> This is first paragraph of text </p>


<p align="right"> This is second paragraph of text </p>


<p align="center"> This is second paragraph of text </p>


<p align="justify"> This is second paragraph of text </p>







Comments (0)

  • To add your comment please or

We use cookies to improve your experience on our site and to show you personalised advertising. Please read our cookie policy and privacy policy.

Got It!