This is a snapshot of an early working draft and has therefore been superseded by the HTML standard.
This document will not be further updated.
p element represents a paragraph.
p elements can contain a mixture of strictly inline-level content, such as text, images,
hyperlinks, etc, and structured inline-level
elements, such as lists, tables, and block quotes.
p elements must not be empty.
The following examples are conforming HTML fragments:
<p>The little kitten gently seated himself on a piece of carpet. Later in his life, this would be referred to as the time the cat sat on the mat.</p>
<fieldset> <legend>Personal information</legend> <p> <label>Name: <input name="n"></label> <label><input name="anon" type="checkbox"> Hide from other users</label> </p> <p><label>Address: <textarea name="a"></textarea></label></p> </fieldset>
<p>There was once an example from Femley,<br> Whose markup was of dubious quality.<br> The validator complained,<br> So the author was pained,<br> To move the error from the markup to the rhyming.</p>
p element should not be used when a
more specific element is more appropriate.
The following example is technically correct:
<section> <!-- ... --> <p>Last modified: 2001-04-23</p> <p>Author: email@example.com</p> </section>
However, it would be better marked-up as:
<section> <!-- ... --> <footer>Last modified: 2001-04-23</footer> <address>Author: firstname.lastname@example.org</address> </section>
<section> <!-- ... --> <footer> <p>Last modified: 2001-04-23</p> <address>Author: email@example.com</address> </footer> </section>
hr element represents a paragraph-level thematic break, e.g. a scene change
in a story, or a transition to another topic within a section of a
Strictly inline-level content.
br element represents a line break.
br elements must be empty. Any content
br elements must not be considered
part of the surrounding text.
br elements must only be used for line
breaks that are actually part of the content, as in poems or addresses.
The following example is correct usage of the
<p>P. Sherman<br> 42 Wallaby Way<br> Sydney</p>
br elements must not be used for
separating thematic groups in a paragraph.
The following examples are non-conforming, as they abuse the
<p><a ...>34 comments.</a><br> <a ...>Add a comment.<a></p>
<p>Name: <input name="name"><br> Address: <input name="address"></p>
Here are alternatives to the above, which are correct:
<p><a ...>34 comments.</a></p> <p><a ...>Add a comment.<a></p>
<p>Name: <input name="name"></p> <p>Address: <input name="address"></p>
dialog element represents a
Each part of the conversation must have an explicit talker (or speaker)
given by a
dt element, and a discourse (or
quote) given by a
This example demonstrates this using an extract from Abbot and Costello's famous sketch, Who's on first:
<dialog> <dt> Costello <dd> Look, you gotta first baseman? <dt> Abbott <dd> Certainly. <dt> Costello <dd> Who's playing first? <dt> Abbott <dd> That's right. <dt> Costello <dd> When you pay off the first baseman every month, who gets the money? <dt> Abbott <dd> Every dollar of it. </dialog>
Text in a
dt element in a
dialog element is implicitly the source
of the text given in the following
element, and the contents of the
are implicitly a quote from that speaker. There is thus no need to include
blockquote elements in this
markup. Indeed, a
q element inside a
dd element in a conversation would actually
imply the person talking were themselves quoting someone else. See the
blockquote elements for other
ways to cite or quote.