7 out of 31 rated this helpful - Rate this topic

p element | p object

[This documentation is preliminary and is subject to change.]

Denotes a paragraph.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 9.3.1

Standards information

HTML information

Closing Tagforbidden
CSS Displayblock

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     p

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
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.