Do I need a

inside a

?

Giganews Newsgroups
Subject: Do I need a <p> inside a <div>?
Posted by:  David Stone (no.email@domain.invalid)
Date: Thu, 31 Jan 2008

If I have a div containing _only_ a single line of text, containing
only such elements as <span> or <a>, is it _required_ to nest
that text within a <p> under html 4?

Example:

<div class="fine-print">
  Standard <a href="disclaimer.html">disclaimers</a> apply
</div>

- or -

<div class="fine-print">
  <p>Standard <a href="disclaimer.html">disclaimers</a> apply</p>
</div>

?

Replies