Easy Tutorial
❮ Canvas Fillstyle Tag Link ❯

HTML <p> Tag

Example

The following code marks a paragraph:

<p>This is a paragraph.</p>

Browser Support

Most browsers currently support the <p> tag.


Tag Definition and Usage

The <p> tag defines a paragraph.

The <p> element automatically creates some space before and after itself. Browsers automatically add this space, but you can also define it in the stylesheet.


Differences Between HTML 4.01 and HTML5

The align attribute of the tag has been deprecated in HTML 4.01 and is not supported in HTML5.


Attributes

Attribute Value Description
align left <br>right <br>center <br>justify Not supported in HTML5. Deprecated in HTML 4.01. Discouraged. Use styles instead. <br>Specifies the alignment of the text within the paragraph.

Global Attributes

The <p> tag supports global attributes. View the complete list of HTML Global Attributes.


Event Attributes

The <p> tag supports all HTML Event Attributes.


Related Articles

HTML Tutorial: HTML Paragraphs

❮ Canvas Fillstyle Tag Link ❯