blockquote ElementThe blockquote element is a block-level element declared by the XHTML 1.1 Text Module (Block Phrasal)
Elements in the Text Module are:span | br (Inline Structural Support Module)em | strong | q | cite | abbr | acronym | code | var | kbd | samp | dfn (Inline Phrasal Support Module)div | p (Block Structural Support Module)h1 - h6 | blockquote | pre | address (Block Phrasal Support Module)
The blockquote element is very like the q element except that the quotation
contained within a blockquote is at least one paragraph long (and commonly more). The quotation within a blockquote
is usually indented by the browser, but blockquote should not be used merely to achieve this effect on text which is not a quotation.
To indent arbitrary text which is not a quotation, use CSS.
The cite attribute may be used to specify a URI
from which the quotation has been taken. However, currently there are no browsers of which I am aware that recognise the
cite attribute and present the user with
an actual link to the URI. Unless something is done by the author (for example including JavaScript to
find the cite attributes and explicitly create
links to the URIs) there is no easy way for someone viewing the page to even know the citation is there.
It is probably best to acknowledge your source using a
cite element in combination with a hyperlink
(but include the cite attribute as well to explicitly link that quote to that URI -
as far as search engines are concerned, for example).
The JavaScript method is a solution, of course, but you can never guarantee that viewers of your page will have a compatible version of JavaScript
installed and enabled. Your quoted source may also insist on a conventional hyperlink as their citation.
A blockquote element cannot have text or inline elements as children - all its children must be block level elements.
The following example shows the use of blockquote in combination with a
cite element and hyperlink to reference the source.
<blockquote cite="http://en.wikipedia.org/wiki/Hippopotamus"
title="This quotation was taken from 'Wikipedia: Hippopotamus' on 9th October 2008">
<p>
Hippos spend most of their days wallowing in the water or the mud,
with the other members of their pod. The water serves to keep their
body temperature cool, and to keep their skin from drying out.
With the exception of eating, most of hippopotamuses' lives
- from childbirth, fighting with other hippos, and reproduction -
occur in the water.
</p>
<div class="cite">
This quotation was taken on 9th October 2008 from
<cite><a href="http://en.wikipedia.org/wiki/Hippopotamus">Wikipedia: Hippopotamus</a></cite>
</div>
</blockquote>
This quotation renders as:
Hippos spend most of their days wallowing in the water or the mud, with the other members of their pod. The water serves to keep their body temperature cool, and to keep their skin from drying out. With the exception of eating, most of hippopotamuses' lives - from childbirth, fighting with other hippos, and reproduction - occur in the water.
This quotation was taken on 9th October 2008 from Wikipedia: Hippopotamus
There are no #REQUIRED attributes on the blockquote element.
blockquote element are listed below:blockquote element are listed below:class [ type NMTOKENS ]id [ type ID ]style [ type CDATA ], from the Style Attribute Module (deprecated)title [ type Text ]xmlns [ type URI - #FIXED 'http://www.w3.org/1999/xhtml' ]dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Modulexml:lang [ type LanguageCode ]All attributes in the
Events Attribute Collection
are supported:onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
blockquote element is:
NOTE: This element cannot be empty
See Content Model & Nesting for information about Content Model syntax and Nesting Groups.
blockquoteaddress, blockquote, div, h1 - h6, p, predl, ol, ultablefieldset, formhrnoscript, scriptdel, insblockquotebodyblockquote, divdd, litd, thbutton, fieldset, formmapnoscriptdel, insobject