Skip to content
Related Articles

Related Articles

Improve Article
HTML | <p> align Attribute
  • Last Updated : 29 May, 2019

The HTML <p> align Attribute is used to specify the alignment of paragraph text content.


<p align="left | right | center | justify">

Attribute Values:

  • left: It sets the text left-align.
  • right: It sets the text right-align.
  • center: It sets the text center-align.
  • justify: It stretch the text of paragraph to set the width of all lines equal.

Note: The <p> align attribute is not supported by HTML 5.


<!DOCTYPE html>
        HTML p align Attribute
    <h2>HTML p align Attribute</h2>
    <p align="left">
      Left align content
    <p align="center">
      center align content
    <p align="right">
      Right align content


Supported Browsers: The browser supported by HTML <p> align attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Recommended Articles
Page :