Subscribe to
NSLog(); Header Image


Since when does <blockquote> require <p> tags inside of it?

5 Responses to "blockquotes"

  1. I've read in a few places that XHTML 1.0 Strict and XHTML 1.1 require <p> tags inside of <blockquote> tags

  2. I never remembered it not requiring <p> tages (this is in XHTML).

  3. I don't think it is required, but it is permitted to use <p> blocks inside a blockquote.

  4. I don't think it is required, but it is permitted to use

    No thinking required, just check the spec.

    XHTML 1.0 Transitional allows block and inline elements inside of blockquote. Strict requires block elements.

  5. You're not the only one who's asked the question before:

    <blockquote> requires a <p> tag to wrap the quoted text inside the <blockquote> element. This was news to me. Was it mentioned specifically in the W3C HTML 4.0.1 spec for the <blockquote> element. Nope. Oh wait… There is an example and it uses the <p> tag, but there is nary a mention in the definition of the element that this is now the case. Sure, maybe I missed this documented elsewhere, but it was a surprise to me. I discovered the rule from a web site other than the W3C’s. I should also note that I see a lot of other blogs out there that also do not do seem to do it correctly all of the time. Even Dan Cederholm’s and Keith Robinsons’ blogs seem to miss this markup gotcha, so I don’t think I’m the only one who missed this little change.

    See: Design by Fire: I would RTFM if there was an FM to FR.