blockquote Element


 

Module

The 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)

Description

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

#REQUIRED Attributes

There are no #REQUIRED attributes on the blockquote element.


Specific Attributes

Specific attributes of the blockquote element are listed below:

From the Text Module (Block Phrasal) - the Element's own Module

cite [ type URI ]
The URI from which the quotation has been taken

Common Attributes

Common attributes of the blockquote element are listed below:

From the Core Attribute Collection

class [ type NMTOKENS ]
One or more space separated classes
id [ type ID ]
A unique identifier for the element
style [ type CDATA ], from the Style Attribute Module (deprecated)
Element-specific styles
title [ type Text ]
Descriptive title for the element (in some user agents this may appear as a "tooltip" when the mouse hovers over the element)
xmlns [ type URI - #FIXED 'http://www.w3.org/1999/xhtml' ]
XML namespace

From the I18N Attribute Collection

dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Module
Left-to-right or right-to-left directionality
xml:lang [ type LanguageCode ]
A language code for the element

From the Events Attribute Collection

All attributes in the Events Attribute Collection are supported:
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup


Content Model

The Content Model for the blockquote element is:

Block.mix+

NOTE: This element cannot be empty

See Content Model & Nesting for information about Content Model syntax and Nesting Groups.

Valid children of blockquote

Valid parents of blockquote


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 01 Oct 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > XHTML 1.1 Indexes > Element Index (XHTML 1.1) > blockquote Element