LEARNING OBJECTIVES ⌵
- Understand the strict WHATWG definition of the
<cite>element as representing the title of a creative work. - Debunk the legacy myth of placing author or person names inside
<cite>and implement the modern specification standard. - Differentiate between the
<cite>HTML element and theciteHTML attribute on<blockquote>and<q>. - Structure accessible citation blocks using
<figure>,<blockquote>,<figcaption>, and<cite>.
📖 The Mental Model & Story (Intuitive Foundation)
Imagine writing an academic thesis on the history of computing. You want to quote a famous passage:
"Computer science is no more about computers than astronomy is about telescopes."
Who said it? Often attributed to Edsger W. Dijkstra. Where did it originate? In the book Selected Writings on Computing: A Personal Perspective.
+----------------------------------------------------------------------------------------------------+
| THE CITATION TRIAD: QUOTE, AUTHOR, AND WORK |
+----------------------------------------------------------------------------------------------------+
| |
| 1. THE QUOTATION: |
| <blockquote> "Computer science is no more about computers..." </blockquote> |
| |
| 2. THE AUTHOR (Human Being / Entity): |
| <span>Edsger W. Dijkstra</span> <--- (NEVER wrap in <cite>! A person is not a work) |
| |
| 3. THE CREATIVE WORK (Book / Paper / Film Title): |
| <cite>Selected Writings on Computing: A Personal Perspective</cite> <--- (VALID <cite>!) |
| |
+----------------------------------------------------------------------------------------------------+
In the early days of HTML (HTML4), developers colloquially used <cite> to wrap people's names (e.g., <cite>Steve Jobs</cite>).
The WHATWG HTML5 specification closed this ambiguity with absolute finality: <cite> represents the title of a work, never the person who created it. A human being is a biological organism, not a published creative work!
Technical Deep Dive & Specifications
WHATWG HTML Living Standard Specification
According to the official WHATWG specification:
"The
<cite>element represents the title of a work (e.g. a book, a paper, an essay, a poem, a score, a song, a script, a film, a television show, a game, a sculpture, a painting, a theatre production, a play, an opera, a musical, an exhibition, a legal case report, a computer program, etc.).""A person's name is not the title of a work — even if people call that person a piece of work — and the element must therefore not be used to mark up people's names."
Exhaustive List of Valid Creative Works for <cite>
+---------------------------+
| VALID <cite> WORKS |
+---------------------------+
|
+------------------+--------------------+-------------------+------------------+
| | | | |
v v v v v
[ LITERATURE ] [ MEDIA ] [ SOFTWARE ] [ SCIENTIFIC ] [ FINE ART ]
Books, Essays, Films, Albums, OS, Libraries, Whitepapers, Paintings,
Plays, Poems Podcasts, Songs Game Engines Case Studies Sculptures
<cite> Element vs. cite Attribute
Do not confuse the inline <cite> element with the cite="" attribute:
<!-- The 'cite' attribute accepts a URL pointing to the online source -->
<blockquote cite="https://www.w3.org/TR/html52/">
<p>HTML is the standard markup language for documents designed to be displayed in a web browser.</p>
</blockquote>
<!-- The <cite> element encloses the human-readable TITLE of that work -->
<p>
Source: <cite>W3C HTML 5.2 Recommendation</cite> by the W3C Web Platform Working Group.
</p>
| Syntax | Type | Value Expected | Purpose |
|---|---|---|---|
<cite>Title</cite> |
HTML Element | Human-readable title string | Identifies the creative work title in text flow |
cite="https://..." |
HTML Attribute | Machine-readable URL / URI | Links a <blockquote>, <q>, <del>, or <ins> to its source |
Architectural Best Practice: <figure> + <blockquote> + <figcaption>
The semantic gold standard for presenting quotations with their full attribution is wrapping them in a <figure>:
<figure>
<blockquote cite="https://archive.org/details/designofeveryday00norm">
<p>Good design is actually a lot harder to notice than poor design, in part because good designs fit our needs so well that the design is invisible.</p>
</blockquote>
<figcaption>
— Don Norman, in <cite>The Design of Everyday Things</cite>
</figcaption>
</figure>
💻 Interactive Code Playground
Starter Code
Line-by-Line Code Breakdown
- Line 43:
<figure>— Groups the quotation and its attribution caption into a self-contained unit. - Line 44:
<blockquote cite="https://dl.acm.org/...">— Theciteattribute supplies the machine-readable URL. - Line 50:
<span class="author-name">Donald E. Knuth</span>— The author is wrapped in a<span>, not a<cite>. - Line 51:
<cite>Structured Programming with go to Statements</cite>— Encloses the exact title of the published paper. - Line 60–61:
<cite>The UNIX Time-Sharing System</cite>and<cite>The C Programming Language</cite>— Semantic citations for book/paper titles inside regular text flow.
Expected Browser Render Output
- The quote renders with an indigo border and subtle background tint.
- The paper and book titles appear in clean italicized typography (
<cite>defaults tofont-style: italic), highlighted in indigo. - The author names render in upright bold text.
🏋️ Hands-On Exercise
🎯 The Challenge: Academic Film & Literature Review
You are auditing an online publication's book and movie review section. The existing code repeatedly violates the WHATWG <cite> specification by wrapping author and director names inside <cite> tags.
Instructions:
- Audit the markup and remove
<cite>tags from all human beings (authors, directors, actors). - Ensure every book, paper, movie, and album title is properly wrapped in a
<cite>element. - Structure the featured review as a
<figure>with<blockquote>,figcaption, and the online URL on theciteattribute.
🏁 Starter Code Sandbox
⚠️ Common Pitfalls
- Wrapping Author Names in
<cite>: This is the #1 most common HTML semantics violation. Remember the WHATWG golden rule: A person is not a work. - Using
<cite>for Entire Quotations:<cite>must enclose the source title, never the quote text itself. The quote belongs in<blockquote>or<q>. - Putting URLs inside
<cite>: The<cite>element is for human-readable work titles (e.g.,<cite>The New York Times</cite>). Machine URLs belong inhreforcite="..."attributes.
💡 Pro Tips
- Semantic Integration with Dublin Core & Schema.org: When generating metadata for academic repositories, pairing
<cite>withitemprop="citation"oritemprop="headline"allows Google Scholar and Zotero browser extensions to extract bibliography references automatically. - CSS Reset Awareness: Since browsers apply
font-style: italicby default to<cite>, some teams apply a resetcite { font-style: normal; }and use CSS quotes or custom font variations to adhere to APA or Chicago Manual of Style guidelines.
📌 Key Takeaways
<cite>represents the title of a creative work (book, paper, movie, song, software).<cite>MUST NEVER be used to mark up a person's name or author's name.- The
<cite>element contains text titles; theciteattribute contains source URLs. - Combine
<figure>,<blockquote>,<figcaption>, and<cite>for semantic citation blocks. - User agents style
<cite>withfont-style: italicby default. - --