Example A paragraph is marked up as follows: <p>This is some text in a paragraph.</p> Definition and Usage The <p...
ExampleA paragraph is marked up as follows:
<p>This is some text in a paragraph.</p>
Definition and UsageThe <p> tag defines a paragraph.
The p element automatically creates some space before and after itself. The space is automatically applied by the browser, or you can specify it in a style sheet.
Browser SupportThe <p> tag is supported in all major browsers.
Differences Between HTML and XHTMLAll "presentation attributes" of the p element were deprecated in HTML 4.01, and are not supported in XHTML 1.0 Strict DTD.
Optional AttributesDTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
|Deprecated. Use styles instead. |
Specifies the alignment of the text within a paragraph
|id, class, title, style, dir, lang, xml:lang|
|onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup|