XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / p

(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

   

p

HTML 4.01 | HTML 5

<p> ... </p>

Identifies a paragraph. Paragraphs can contain text and inline elements. However, they must not contain other block elements, including other paragraphs. According to the specifications, browsers should ignore consecutive empty p elements.

Start/end tag

HTML: required/optional; XHTML: required/required

Attributes

Core, internationalization, events, global HTML 5 attributes

  • align="center|left|right"

    Deprecated. Not in HTML 5. Aligns the text within the paragraph to the left, to the right or in the center of the page.

Example

<p>Absätze sind die elementarsten Bausteine eines Textdokuments.</p>
<p>Sie werden mit dem <code>p</code>-Element markiert.</p>

 

> back to the alphabetical list of elements

   

 

 

 

back to top