References

Beginner-friendly references for web development, with live, editable examples.

The HTML <cite> tag

Element All modern browsers Updated
Quick answer

The HTML <cite> element marks up the title of a creative work — a book, film, song, article, paper or website being referenced. It is rendered italic by default. It is for the work's title, not for a person's name.

Overview

The <cite> element identifies the title of a creative work — a book, article, film, song, painting, paper, or website. Browsers render it in italics by default, and it pairs naturally with a quotation to credit the source.

There is a precise rule that catches people out: per the HTML specification, <cite> is for the title of the work, not the author's name. So you would mark up Moby-Dick but not "Herman Melville" with it.

Do not confuse the <cite> element with the cite attribute on <blockquote> and <q>: the attribute holds a source URL as hidden metadata, while the element is a visible reference to a work's title.

Syntax

<p>From <cite>The Pragmatic Programmer</cite>.</p>

Example

Live example
<p>My favorite book is <cite>The Little Prince</cite>.</p>

Best practices

  • Use <cite> for the title of a creative work — book, film, article, song, site.
  • Per the spec, do not wrap an author's name in it; it is for titles only.
  • Pair it with a <blockquote> or <q> to credit a quotation's source.
  • Do not confuse the element with the cite attribute, which holds a URL.

Frequently asked questions

What does the cite element mark up?
The title of a creative work — such as a book, article, film or song — not the author's name.
Can I use cite for an author's name?
Per the HTML spec, no — it is specifically for the title of a work. Author names are plain text.
What is the difference between the cite element and the cite attribute?
The <cite> element is a visible reference to a work's title; the cite attribute on <blockquote>/<q> is a hidden source URL.
Why is cite text italic?
Browsers italicize <cite> by default, matching the convention for titles of works. Restyle it with CSS if you prefer.