In HTML5, is it correct to put blockquotes
inside paragraphs or is the opposite the right way? I mean, logic tells that a blockquote
may be citing
blockquote
is the block-level replacement for q
elements.
If you want to quote multiple paragraphs so that it looks like a block, use blockquote
and put p
s inside them.
See MDN on blockquotes
The HTML
Element (or HTML Block Quotation Element) indicates that the enclosed text is an extended quotation.
The example has a inside a
.
on the other hand says:
The HTML Quote Element (
) indicates that the enclosed text is a short inline quotation. This element is intended for short quotations that don’t require paragraph breaks; for long quotations use
element.
Bottom line: the correct usage is:
Paragraph 1.
Paragraph 2.
Paragraph 3 with a short quotation
.