<cite>

Term side of the Card.
Topic: Semantics
Unit title: <cite>
Categories: Tag
Explanation side of the Card

Explanation: The element that is used to reference the title of a work, such as a book, article, movie or song. It's often displayed in italics and is used to give credit or indicate the source of a quote or piece of information.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1.
  • The edge browser supports this feature starting from version 12.
  • The firefox browser supports this feature starting from version 1.
  • The safari browser supports this feature starting from version 4.
Availability: 

Example

Wronghtml
<blockquote>
  <p>Less is more.</p>
  <cite>Ludwig Mies</cite>
</blockquote>
Righthtml
<figure>
  <blockquote><p>Less is more.</p></blockquote>
  <figcaption>From <cite>Design Notes</cite></figcaption>
</figure>

<cite> names a work, and the attribution sits in <figcaption> outside the quote.

Common mistakes

  • Wrapping a person's name in <cite> instead of the title of a work.
  • Confusing the <cite> element with the cite attribute on <blockquote>.

Interview questions

Can <cite> contain a person's name?

The spec says <cite> is for the title of a work, so a person's name should not be wrapped in it.

What is the cite attribute on <blockquote>?

It holds a URL to the source of the quote. It is not shown on the page.

Analytics cookiesWe'd like to use analytics cookies to see which pages are useful. They're set only if you accept. Privacy Policy