< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >
Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class
<p> Description:
The <p> element defines paragraphs within documents.
Do not use the <p> tag to create spaces in your content. You should use the margin style property instead.
<p> Web Browser Support:
- AvantGo Palm OS
- AvantGo Windows CE
- Firefox 1, 2, 3
- Internet Explorer 2, 3, 4, 5, 6, 7
- Netscape 2, 3, 4, 6, 7, 8, 9
- Opera 3, 4, 5, 6, 7, 8, 9
- Safari 1, 2, 3
- WebTV / MSNTV
- HTML 3.2, 4.0
- XHTML 1.0
XHTML Legacy Module, XHTML Text Module
<p> Attributes:
- align (optional) DEPRECATED
- class (optional)
- dir (optional)
- id (optional)
- lang (optional)
- onclick (optional)
- ondblclick (optional)
- onkeydown (optional)
- onkeypress (optional)
- onkeyup (optional)
- onmousedown (optional)
- onmousemove (optional)
- onmouseout (optional)
- onmouseover (optional)
- onmouseup (optional)
- style (optional)
- title (optional)
<p> End Tag:
</p> REQUIRED in XHTML, Optional in HTML 4.01
<p> Contents:
Usually text. The following tags are valid within the <p> tag:
<p> Valid Context:
The <p></p> tag is valid within the following tags:
<p> Usage:
- Standard paragraph
<p>This is the first paragraph.</p> <p>And this is the second paragraph.</p>
<p> Special Notes:
- If you are using style sheets, it is a good idea to use the end tag </p> so that it is clear where the paragraphs end.

