Web Design / HTML

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

<p></p>

By Jennifer Kyrnin, About.com

< 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

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Web Design / HTML

  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.