mozilla

Revision 344853 of <cite>

  • Revision slug: HTML/Element/cite
  • Revision title: <cite>
  • Revision id: 344853
  • Created:
  • Creator: medicdude
  • Is current revision? No
  • Comment

Revision Content

Summary

The HTML <cite> Element (or HTML Citation Element) contains the title of a work, such as a book, song, movie, TV show, sculpture, etc.

Usage Notes:

  • In {{HTMLVersionInline(5)}}, use of this element to mark a person's name is no longer considered semantically appropriate.
  • Use the {{htmlattrxref("cite", "blockquote")}} attribute on a {{HTMLElement("blockquote")}} or {{HTMLElement("q")}} element to reference an online resource for a source.

Attributes

This element only includes the global attributes.

Example

More information can be found in <cite>[ISO-0000]</cite>

The HTML above outputs:

More information can be found in [ISO-0000]

Notes

To prevent the italic style from being used for the <cite> element use the CSS font-style property.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-cite-element', '<cite>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'the-cite-element.html#the-b-element', '<cite>')}} {{Spec2('HTML5 W3C')}}  
{{SpecName('HTML4.01', 'text.html#h-9.2.1', '<cite>')}} {{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}}

See also

  • {{HTMLElement("blockquote")}}
  • {{HTMLElement("q")}}
{{HTML:Element_Navigation}}

Revision Source

<h2 id="Summary">Summary</h2>
<p>The <strong>HTML <code>&lt;cite&gt;</code> Element</strong> (or <em>HTML Citation Element</em>) contains the title of a work, such as a book, song, movie, TV show, sculpture, etc.</p>
<div class="note">
  <p><strong>Usage Notes:</strong></p>
  <ul>
    <li>In {{HTMLVersionInline(5)}}, use of this element to mark a person's name is no longer considered semantically appropriate.</li>
    <li>Use the {{htmlattrxref("cite", "blockquote")}} attribute on a {{HTMLElement("blockquote")}} or {{HTMLElement("q")}} element to reference an online resource for a source.</li>
  </ul>
</div>
<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>, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">phrasing content</a>, palpable content.</li>
  <li><dfn>Permitted content</dfn> <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Phrasing_content">Phrasing 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#Phrasing_content" title="HTML/Content_categories#Phrasing_content">phrasing content</a>.</li>
  <li><dfn>DOM interface</dfn> {{domxref("HTMLElement")}} Up to Gecko 1.9.2 (Firefox 4) inclusive, Firefox implements the <a href="/en-US/docs/DOM/span" title="DOM/span"><code>HTMLSpanElement</code></a> interface for this element.</li>
</ul>
<h2 id="Attributes">Attributes</h2>
<p><span style="line-height: 21px;">This element only 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>
<h2 id="Example">Example</h2>
<pre class="brush: html">
More information can be found in &lt;cite&gt;[ISO-0000]&lt;/cite&gt;</pre>
<p>The HTML above outputs:</p>
<p>More information can be found in <cite>[ISO-0000]</cite></p>
<h2 id="Notes">Notes</h2>
<p>To prevent the italic style from being used for the <code>&lt;cite&gt;</code> element use the <a href="/en-US/docs/CSS" title="CSS">CSS</a> <a href="/en-US/docs/CSS/font-style" title="CSS/font-style">font-style</a> property.</p>
<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', 'text-level-semantics.html#the-cite-element', '&lt;cite&gt;')}}</td>
      <td>{{Spec2('HTML WHATWG')}}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML5 W3C', 'the-cite-element.html#the-b-element', '&lt;cite&gt;')}}</td>
      <td>{{Spec2('HTML5 W3C')}}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML4.01', 'text.html#h-9.2.1', '&lt;cite&gt;')}}</td>
      <td>{{Spec2('HTML4.01')}}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<div>
  {{CompatibilityTable}}</div>
<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="See_also">See also</h2>
<ul>
  <li>{{HTMLElement("blockquote")}}</li>
  <li>{{HTMLElement("q")}}</li>
</ul>
<div>
  {{HTML:Element_Navigation}}</div>
Revert to this revision