BestWebTutorials.com
A service of CrystalClearWeb.net
 
Web BestWebTutorials.com

XHTML - <p> </p> Paragraph Tag

Definition

The <p> </p> tag pair defines a paragraph. Most browsers will display a paragraph properly (probably) without the ending </p> tag, but the tag is required for the document to be well formed.

Example

<p>This is the text in the first paragraph</p>
<p>This is the text in the second paragraph</p>

Output

This is the text in the first paragraph

This is the text in the second paragraph

Attributes

The following events may be attached to a paragraph tag:

  • align (deprecated)
  • id
  • title
  • class
  • style
  • dir *
  • lang *
  • xml:lang * 

The attributes marked with an asterisk are kind of useless. Please see our <p (attr)="..."> page for working examples.

Events

The following events may be attached to a paragraph tag:

  • onclick
  • ondblclick
  • onmousedown
  • onmouseup
  • onmouseover
  • onmouseout
  • onmousemove *
  • onkeypress *
  • onkeydown *
  • onkeyup *

The events marked with an asterisk are kind of useless. Please see our <p (event)="..."> page for working examples.
 

Return to XHTML Tags List

BestWebTutorials.com is a free service of CrystalClearWeb.net. You can help us keep providing free tutorials and information by:

  • Link to us
  • Tell a friend
  • Correct any  you might find
  • Make for improvement
  • Make a donation


web services byCrystalClearWeb.net