Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML | <p> align Attribute

Improve Article
Save Article
  • Difficulty Level : Basic
  • Last Updated : 22 Feb, 2022
Improve Article
Save Article

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. It is a default value.
  • 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

HTML is the foundation of webpages, is used for webpage development by structuring websites and web apps.You can learn HTML from the ground up by following this HTML Tutorial and HTML Examples.

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!