p

< html‎ | elements
Jump to: navigation, search

p

This article is In Progress.


W3C Recommendation

Summary

The p (for paragraph) element (<p>) represents a paragraph.


Overview Table

DOM Interface HTMLParagraphElement

p cannot contain block-level elements (including p itself).

HTML information

Closing Tag optional
CSS Display block


Compatibility

Do you think this data can be improved? You can ask to add by opening an issue or make a pull request.

Desktop

FeaturesChromeFirefoxInternet ExplorerOperaSafari
Basic support
1.0
Yes
1.0
Yes
?
Yes
?
Yes
?
Yes

Mobile

FeaturesAndroidFirefox MobileIE PhoneOpera MobileSafari Mobile
Basic support
?
Yes
1.0
Yes
?
Yes
?
Yes
?
Yes

Examples

This example uses the p element to create a paragraph.

HTML

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



Related specifications

Specification Status Related Changes
HTML 4.01 Specification W3C Recommendation
HTML5 W3C Working Draft The align attribute is obsolete.

See also

Related articles

Document Structure









  • p


HTML


















































… further results

Attribution

This article contains content originally from external sources.

Portions of this content come from the Mozilla Developer Network cc-by-sa-small-wpd.svg: Article

Portions of this content come from the Microsoft Developer Network: Windows Internet Explorer API reference Article