[whatwg] Paragraphs in blockquotes

Futomi Hatano info at html5.jp
Tue May 11 01:49:32 PDT 2010


On Tue, 11 May 2010 09:06:11 +0100
Richard Clark <hello at richclarkdesign.com> wrote:

> In HTML5 that requirement seems to have been relaxed, as the following
> element validates successfully:
> 
> <blockquote>This is a blockquote.</blockquote>
> 
> The HTML5 spec uses the p element in the usage examples, but does not
> mention whether it is required.
> 
> Can you please confirm if this requirement has now been deprecated?"

The content model for <blockquote> is Flow content.
Flow content includes "text".
So, the text as a child of <blockquote> is valid.

The spec says that a run of phrasing content (in this case, it is the text.) is a paragraph.
http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#paragraph
So, the examples below have same semantics.

<blockquote>This is a blockquote.</blockquote>
<blockquote><p>This is a blockquote.</p></blockquote>

The former is valid, but, of course, authers are encouraged the latter much more.

Regards
Futomi

--
Futomi Hatano
http://www.html5.jp/
http://www.futomi.com/
http://twitter.com/futomi



More information about the whatwg mailing list