p

Jump to: navigation, search

p

Needs Summary: This article does not have a summary. Summaries give a brief overview of the topic and are automatically included on some listing pages that link to this article.


Overview Table

DOM Interface ?

<p>

The <p> element represents a paragraph.

Point

  • The p element should not be used when a more specific element is more appropriate. [Example B]


HTML Attributes

See global attributes.


Examples

Example A

[try it]

<p>The quick brown fox jumps over the lazy dog.</p>

File:P01.png

Example B

The following example is technically correct

<section>
  <p>Last modified: 2001-04-23</p>
  <p>Author: fred@example.com</p>
</section>

However, it would be better marked-up as:

<section>
  <footer>Last modified: 2001-04-23</footer>
  <address>Author: fred@example.com</address>
</section>

Or:

<section>
  <footer>
    <p>Last modified: 2001-04-23</p>
    <address>Author: fred@example.com</address>
  </footer>
</section>


HTML Reference

The HTML5 specification defines the <p> element in 4.5.1 The p element.

Needs Examples: This section should include examples.



Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?