<blockquote>

  • Revision slug: Web/HTML/Element/blockquote
  • Revision title: <blockquote>
  • Revision id: 391093
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment Moved From HTML/Element/blockquote to Web/HTML/Element/blockquote

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 includes the global attributes.

{{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-US/docs/HTML/Element/blockquote#Notes" title="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="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="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="HTML/Content_categories#Phrasing_content">flow content</a>.</li>
  <li><dfn>DOM interface</dfn> {{domxref("HTMLQuoteElement")}}</li>
</ul>
<h2 id="Attributes">Attributes</h2>
<p><span style="line-height: 21px;">This element includes the&nbsp;</span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">global attributes</a><span style="line-height: 21px;">.</span></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-US/docs/CSS" title="CSS">CSS</a> <a href="/en-US/docs/CSS/margin" title="CSS/margin">margin</a> property.</p>
<p>For short quotes use <a href="/en-US/docs/HTML/Element/q" title="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-US/docs/DOM/HTMLQuoteElement" title="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