p element | p object
[This documentation is preliminary and is subject to change.]
Denotes a paragraph.
![]() ![]() |
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
- HTML 4.01 Specification, Section 9.3.1
HTML information
| Closing Tag | forbidden |
|---|---|
| CSS Display | block |
DOM Information
Inheritance Hierarchy
Remarks
Windows Internet Explorer 8. In IE8 Standards mode, the P element is automatically closed when a TABLE element is encountered. For example, <p><table>..</table></p> is now parsed as <p>..</p><table>..</table>. For more information, see HTML Enhancements in Internet Explorer 8 and Defining Document Compatibility.
Examples
This example uses the P element to create a paragraph.
<p>This is a paragraph.</p>
Build date: 3/8/2012
Caution - interaction - event loss
A P-wrapper containing a DIV/DIV misses its onpaste event.
neg. (Edit-Paste into the DIV)
<P id=wrapper onpaste=alert(66)>
<DIV contenteditable>xxx</DIV>
</P>
PS. Also true for standalone-TD-wrapper not in TABLE, but, not-true for DT-wrapper not in DL.
- 8/21/2008
- Mr. Raymond Kenneth Petry
- 3/3/2009
- Mr. Raymond Kenneth Petry

