1. Home
  2. Computing & Technology
  3. Web Design / HTML

<p></p>

By , About.com Guide

< 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:
<p> Attributes:
<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.
More <p></p> Information:

< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >

Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class

Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The p Element - paragraphs - XHTML 1.0 HTML 4.0>

©2009 About.com, a part of The New York Times Company.

All rights reserved.