Tag Description
The p tag is used to define a paragraph. By default, space before and after paragraph elements is automatically included.
This tag has the form:
<p>text</p>
HTML5 and HTML4.01 Differences
The align attribute, which was deprecated in HTML4.01, is no longer supported in HTML5.
Attributes
Attribute | Value | Description |
---|---|---|
align | left
right top bottom |
Defines the alignment of a caption
HTML4:
![]() HTML5:
![]() |
Global Attributes
This tag also supports the HTML Global Attributes.
Event Attributes
This tag also supports the HTML Event Attributes.
Examples
The following example shows the basic use of this tag:
<p>
Lorem ipsum dolor sit amet...
</p>
<p>
Ut enim ad minim veniam...
</p>
This produces the following result:
Lorem ipsum dolor sit amet...
Ut enim ad minim veniam...
Browser Support
Chrome | Firefox | IE | Safari | Opera |
---|---|---|---|---|
Doctype Declaration Support
The following table lists the doctype declarations this element may appear in:
HTML4.01 / XHTML1.0 | XHTML 1.1 | HTML 5 | ||
---|---|---|---|---|
Traditional | Strict | Frameset | ||
Miscellaneous Information
Defined In: | HTML 3.2 |
---|---|
Empty Tag: | No |