Latest

recent

HTML Blockquote tag

Example

A long quotation is marked up as follows:
<blockquote>
Here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation.
</blockquote>


Definition and Usage

The <blockquote> tag defines a long quotation.
A browser inserts white space before and after a blockquote element. It also insert margins for the blockquote element.

Browser Support

The <blockquote> tag is supported in all major browsers.
Note: None of the major browsers display the cite attribute correctly.

Differences Between HTML and XHTML

To validate a blockquote element as strict HTML, the element must contain only other block-level elements, like this:
<blockquote>
<p>Here is a long quotation here is a long quotation</p>
</blockquote>

Tips and Notes

Tip: Use the q element to mark up short quotations!

Optional Attributes

DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

Attribute Value Description DTD
cite URL URL of the quote, if it is taken from the web STF

Standard Attributes

id, class, title, style, dir, lang, xml:lang
HTML Blockquote tag Reviewed by 1000sourcecodes on 21:16 Rating: 5
Powered by Blogger.