Attribute – P Align Attribute

P Align Attribute


This attribute is not supported in HTML5. It is recommended to use the text-align CSS property.

To align the text inside a <p> tag, this attribute will help.


<p align="position">Lorem Ipsum...</p>


  • left – Text aligns to the left
  • right – Text aligns to the right
  • center – Text aligns to the center
  • justify – All lines of text have equal width


<html> <body> <p align="center">Paragraph align attribute example</p> </body> </html>

More Information:

This article needs improvement. You can help improve this article. You can also write similar articles and help the community.