Web design and digital-business ideas grounded in real tasks.

The HTML cite element names a work, not the person who said a sentence

A laptop displaying an illustrative book title and quotation layout.
AI-generated photographic illustration; not documentary photography.

A quotation component often contains two different things beneath the quoted words: the speaker’s name and the title of the work being referenced. Wrapping both in cite may look tidy, but appearance is not the element’s purpose.

The WHATWG HTML Standard defines the cite element for the title of a work. A person’s name is not a work title. The element may identify a book, film, article or another work even when it is mentioned without a direct quotation.

Mark the title, then style the attribution

Consider a fictional review sentence: “Mira Chen explores the subject in A Map of Quiet Rooms.” The title is the part suitable for cite. The author’s name can remain ordinary text, with a class on a surrounding element if the design needs one.

In source form, that title could be written as <cite>A Map of Quiet Rooms</cite>. These invented names demonstrate the markup; they are not a reference to a real publication.

An attribute with the same name has another job

The cite attribute on a quotation element supplies a source URL. It does not automatically create the visible attribution or a link that readers can follow. Provide a useful visible reference when the reader needs to inspect the source.

Separating these jobs helps: the element identifies a work title, the attribute can carry a quotation-source URL, and the displayed credit tells the reader where the words came from.

Review the rendered result and the markup

A browser’s default italics are not proof that the semantics are correct. Inspect the HTML after a CMS or editor saves the content, and make sure the visible reference remains understandable.

If the design requires a person’s name in italics, use appropriate styling rather than choosing cite solely for that appearance. Conversely, changing the title’s visual style does not require removing useful semantics.

A small attribution component is easier to maintain when each part has a clear purpose. That clarity also helps editors add the next quotation without guessing which words belong inside the element.