Formatting a Block Quotation

When quoting blocks of text from other sources, it is customary, both on Web pages and in print, to indent those blocks from the main body of the text. The <blockquote> tag does exactly that. You can use it for any text that you want to indent, not just quotations.

The <blockquote> tag has a cite="URL" argument, but most browsers don’t do anything with it. If you happen to know the URL for the source you are citing, it is good practice to include it in the tag in case some browsers might support that argument, and as an aid to anyone who might be viewing or editing your raw HTML code later.

Note

There is also a <q> tag, which is used for formatting inline quotations. Its only functionality is to place quotation marks ...

Get HTML and XHTML Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.