2.7 blockquote
Element
We’ve already talked about the div
and p
elements, which are block elements. Now let’s discuss another block element—the blockquote
element. You should use a blockquote
element when you have a quotation that is too long to embed within surrounding text. It’s a block element, so it spans the width of its container. More precisely, its content spans the width of the nonmargin part of its enclosing container.
For a blockquote
element example, see FIGURE 2.2. In the figure’s browser window, note the margins on the four sides of the quote text. Most browsers render a blockquote
element by displaying those margins. But as an alternative, a browser vendor (an organization that implements a browser) may render a blockquote
Get Web Programming with HTML5, CSS, and JavaScript 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.