Revision 334867 of <blockquote>

  • Revision slug: HTML/Element/blockquote
  • Revision title: <blockquote>
  • Revision id: 334867
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

Summary

The HTML <blockquote> Element (or HTML Block Quotation Element) indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see Notes for how to change it). A URL for the source of the quotation may be given using the cite attribute, while a text representation of the source can be given using the {{ HTMLElement("cite") }} element.

Attributes

This element has the global attributes shared by all HTML elements.

{{ htmlattrdef("cite") }}
A URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote.

Example

<blockquote cite="http://developer.mozilla.org">
  <p>This is a quotation taken from the Mozilla Developer Center.</p>
</blockquote>

Above HTML code will output:

This is a quotation taken from the Mozilla Developer Center.

Specifications

Specification Status Comment
{{ SpecName('HTML WHATWG', 'grouping-content.html#the-blockquote-element', '<blockquote>') }} {{ Spec2('HTML WHATWG') }}  
{{ SpecName('HTML5 W3C', 'the-blockquote-element.html#the-blockquote-element', '<blockquote>') }} {{ Spec2('HTML5 W3C') }}  
{{ SpecName('HTML4.01', 'struct/text.html#h-9.2.2', '<blockquote>') }} {{ Spec2('HTML4.01') }}  

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{ CompatVersionUnknown() }} {{ CompatGeckoDesktop("1.0") }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{ CompatVersionUnknown() }} {{ CompatGeckoMobile("1.0") }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }}

Notes

To change <blockquote> indent, use CSS margin property.

For short quotes use <q> element.

See also

  • This element exposes the HTMLQuoteElement DOM interface.
  • Use the {{ HTMLElement("q") }}  element for inline quotations.
  • Use the {{ HTMLElement("cite") }} element for source citations.

Revision Source

<h2 id="Summary">Summary</h2>
<p>The <strong>HTML <code>&lt;blockquote&gt;</code> Element</strong> (or <em>HTML Block Quotation Element</em>) indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see <a href="/en/HTML/Element/blockquote#Notes" title="en/HTML/Element/blockquote#Notes">Notes</a> for how to change it). A URL for the source of the quotation may be given using the <strong>cite</strong> attribute, while a text representation of the source can be given using the {{ HTMLElement("cite") }} element.</p>
<ul class="htmlelt">
  <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="/en-US/docs/HTML/Content_categories">Content categories</a></dfn> <a href="/en-US/docs/HTML/Content_categories#flow_content" title="HTML/Content categories#flow content">Flow content</a>, sectioning root, palpable content.</li>
  <li><dfn>Permitted content</dfn> <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="en-US/docs/HTML/Content_categories#Phrasing_content">Flow content</a>.</li>
  <li><dfn>Tag omission</dfn> {{ no_tag_omission() }}</li>
  <li><dfn>Permitted parent elements</dfn> Any element that accepts <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="en-US/docs/HTML/Content_categories#Phrasing_content">flow content</a>.</li>
  <li><dfn>DOM interface</dfn> {{ domxref("HTMLQuoteElement")}}</li>
</ul>
<h2 id="Attributes">Attributes</h2>
<p>This element has the <a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">global attributes</a> shared by all HTML elements.</p>
<dl>
  <dt>
    {{ htmlattrdef("cite") }}</dt>
  <dd>
    A URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote.</dd>
</dl>
<h2 id="Example">Example</h2>
<pre class="brush: html">
&lt;blockquote cite="http://developer.mozilla.org"&gt;
  &lt;p&gt;This is a quotation taken from the Mozilla Developer Center.&lt;/p&gt;
&lt;/blockquote&gt;
</pre>
<p>Above HTML code will output:</p>
<blockquote cite="http://developer.mozilla.org">
  <p>This is a quotation taken from the Mozilla Developer Center.</p>
</blockquote>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{ SpecName('HTML WHATWG', 'grouping-content.html#the-blockquote-element', '&lt;blockquote&gt;') }}</td>
      <td>{{ Spec2('HTML WHATWG') }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{ SpecName('HTML5 W3C', 'the-blockquote-element.html#the-blockquote-element', '&lt;blockquote&gt;') }}</td>
      <td>{{ Spec2('HTML5 W3C') }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{ SpecName('HTML4.01', 'struct/text.html#h-9.2.2', '&lt;blockquote&gt;') }}</td>
      <td>{{ Spec2('HTML4.01') }}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatGeckoDesktop("1.0") }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Mobile</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatGeckoMobile("1.0") }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="Notes">Notes</h2>
<p>To change <code>&lt;blockquote&gt;</code> indent, use <a href="/en/CSS" title="en/CSS">CSS</a> <a href="/en/CSS/margin" title="en/CSS/margin">margin</a> property.</p>
<p>For short quotes use <a href="/en/HTML/Element/q" title="en/HTML/Element/q"><code>&lt;q&gt;</code></a> element.</p>
<h2 id="See_also">See also</h2>
<ul>
  <li>This element exposes the <a href="/en/DOM/HTMLQuoteElement" title="en/DOM/HTMLQuoteElement">HTMLQuoteElement</a> DOM interface.</li>
  <li>Use the {{ HTMLElement("q") }}&nbsp; element for inline quotations.</li>
  <li>Use the {{ HTMLElement("cite") }} element for source citations.</li>
</ul>
Revert to this revision