1. Technology



HTML5 Blockquote Tag

< Previous | HTML 4.01 Tags | XHTML 1.0 Elements | Next >

Free HTML Class | HTML Validators

BLOCKQUOTE Description:

The BLOCKQUOTE tag designates quoted text - generally long quotations where a paragraph break is appropriate.

Do not use blockquote to indent text. This use of blockquote has been deprecated in favor of margin and padding style properties.

BLOCKQUOTE Web Browser Support:

HTML Versions

BLOCKQUOTE Attributes:

Global attributes, event attributes and:


</blockquote> REQUIRED


CDATA. Long quotations from external sources. The following tags are valid within the BLOCKQUOTE tag:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, br, button, center, cite, code, dfn, dir, div, dl, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, hr, i, iframe, img, input, isindex, kbd, label, map, menu, noframes, noscript, object, ol, p, pre, q, s, samp, script, select, small, span, strike, strong, sub, sup, table, textarea, tt, u, ul, var

BLOCKQUOTE Valid Context:

The BLOCKQUOTE tag is valid within the following tags:
blockquote, body, button, center, dd, div, dt, fieldset, form, iframe, li, noframes, noscript, object, td, th


Standard blockquote

  The time has come, the walrus said, to speak of many things. </blockquote>

See a basic blockquote in a web page.

Blockquote with citation

<blockquote cite="http://www.w3.org/TR/1999/REC-html401-19991224/struct/text.html#edef-BLOCKQUOTE">
  These two elements [Q and BLOCKQUOTE] designate quoted text. </blockquote>

See a blockquote with citation in a web page.

See other examples of how to use BLOCKQUOTE tags.

BLOCKQUOTE Special Notes:

  • Most browsers display content in the BLOCKQUOTE tag indented on both the right and left sides. But you should not use BLOCKQUOTE to indent text. If you need to indent your text, and it's not a long quotation, use margin and padding styles to get the exact indents you want.
  • Some older browsers render content in italics as well. So it's best to use the font-style property to make sure that your text looks the way you want it to.

More BLOCKQUOTE Information:

Blockquotes can add a lot of style to your web pages when used correctly.

< Previous | HTML 4.01 Tags | XHTML 1.0 Elements | Next >

Free HTML Class | HTML Validators

©2014 About.com. All rights reserved.