HTML Reference ยท Inline Text
The <cite> element
Reference for the HTML <cite> element: marking the title of a book, film, song, article or other creative work, with examples and technical details.
The <cite> element marks the title of a creative work: a book, article, film, song, painting, game, website, law, report, and so on. Browsers display it in italics by default.
According to the HTML standard, <cite> holds the title of the work, not the name of the person who made it. A person's name is not a title, so wrap it in plain text or a <span> if you need a hook for styling.
<p>My favourite novel is <cite>The Left Hand of Darkness</cite>.</p>
Try it
In the second example, the author's name sits outside <cite> and only the book title is inside it. Pairing a <blockquote> with a <figcaption> is a clean way to credit a quotation.
Attributes
This element has no attributes of its own. It accepts the global attributes.
Usage notes
<cite>element vsciteattribute. Theciteattribute on<blockquote>,<q>,<ins>and<del>holds a URL for the source and is not shown to readers. The<cite>element shows the title on the page.- Not for every italic phrase. For foreign words, technical terms or thoughts, use
<i>. For stress, use<em>. - Linking. If the work is online, you can put an
<a>inside<cite>or wrap<cite>in a link. - Accessibility. Screen readers generally don't announce
<cite>, so the surrounding words should make it clear that a title is being mentioned.
Technical summary
| Content categories | Flow content, phrasing content, palpable content |
| Permitted content | Phrasing content |
| Tag omission | None; both the start and end tags are required |
| Permitted parents | Any element that accepts phrasing content |
| Implicit ARIA role | No corresponding role |
| DOM interface | HTMLElement |
| Default display | inline (italic) |
Browser support
Supported in every browser.
Related
<blockquote>โ a long quotation<q>โ a short inline quotation<i>โ text in an alternate voice- Lesson: Quotations, Citations and Abbreviations