Using Quote Elements

HTML gives you two tags for marking up quotations: quote and blockquote. The quote tag works with inline quotations, like the dialog in a novel, while the blockquote tag marks up offset quotes, as Figure 40.3 shows.

Figure 40.3. The quote tag is for inline quotations, while the blockquote tag is for offset quotes.

The World Wide Web Consortium (W3C) recommends that you specify the language of the quote in the lang attribute of the quote tag, like this:

<p>Her lip trembled. <q lang="en-us">Plastic,</q> she replied, wondering even as she said 
it if she should have asked for paper.</p>

TIP

The blockquote ...

Get Web Design Garage 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.