<cite>
Defines the title of a creative work
Standard HTMLDefinition and Usage
The <cite> element establishes the title of a creative work such as a book, poem, song, movie, painting, sculpture, etc. It represents a reference to a cited work.
By default, browsers typically render the content of the <cite> element in italic text. The tag provides semantic meaning that helps search engines and assistive technologies understand that the content is a citation.
<cite> for titles of works (books, movies, songs), not for author names or people's names.
<cite> with <blockquote> or <q> tags when citing sources to provide proper context and attribution.
Browser Support
The <cite> tag is supported in all major browsers:
Default Rendering
Browsers typically display <cite> content in italic text by default, equivalent to this CSS:
Default Browser Styling
cite {
font-style: italic;
}
Attributes
The <cite> tag only supports HTML global attributes and event attributes.
Examples
Citing a Book Title
Reference to a book:
Example
<p>
My favorite book is <cite>To Kill a Mockingbird</cite>
by Harper Lee.
</p>
Citing a Movie
Reference to a film:
Example
<p>
Last night I watched <cite>The Shawshank Redemption</cite>
for the third time.
</p>
Citing a Song
Reference to a musical work:
Example
<p>
The song <cite>Bohemian Rhapsody</cite> by Queen
is a masterpiece.
</p>
Citing an Article
Reference to a published article:
Example
<p>
According to the article
<cite>The Future of Web Development</cite>,
AI will play a major role in coding.
</p>
Citing an Artwork
Reference to a painting or sculpture:
Example
<p>
Leonardo da Vinci's <cite>Mona Lisa</cite>
is displayed at the Louvre Museum.
</p>
Cite with Hyperlink
Making the citation clickable:
Example
<p>
Read more in
<cite>
<a href="https://example.com/article">
Web Standards: A Complete Guide
</a>
</cite>
</p>
Cite within Blockquote
Proper attribution for quoted content:
Example
<blockquote>
<p>
The only way to do great work is to love what you do.
</p>
<footer>
— Steve Jobs, <cite>Stanford Commencement Speech</cite>
</footer>
</blockquote>
Multiple Citations
Referencing multiple works:
Example
<p>
For more information, see
<cite>HTML5 for Web Designers</cite>,
<cite>CSS Secrets</cite>, and
<cite>JavaScript: The Good Parts</cite>.
</p>
Styled Citation
Custom styling for citations:
Example
<style>
cite {
font-style: italic;
color: #745af2;
font-weight: 500;
}
</style>
<p>
The research paper <cite>Machine Learning in Healthcare</cite>
provides valuable insights.
</p>
Citation with Quote
Using <q> for inline quotes with citation:
Example
<p>
As mentioned in <cite>The Art of Programming</cite>:
<q>Code is poetry written for machines.</q>
</p>
Bibliography Entry
Creating a bibliography or reference list:
Example
<h3>References</h3>
<ul>
<li>
Author, A. (2024).
<cite>Understanding Web Accessibility</cite>.
Publisher Name.
</li>
<li>
Smith, J. (2023).
<cite>Modern CSS Techniques</cite>.
Tech Press.
</li>
</ul>
Try it Yourself
Interactive Example
See how the <cite> tag renders:
I recently finished reading 1984 by George Orwell. It's a powerful dystopian novel that explores themes of surveillance and totalitarianism.
War is peace. Freedom is slavery. Ignorance is strength.
Other recommended reads include Brave New World and Fahrenheit 451.
When to Use <cite>
- Book titles
- Movie titles
- Song titles
- Album titles
- Article titles
- Painting names
- Research paper titles
- Website names
- Play titles
- TV show titles
- Author names
- People's names
- Company names
- Quotations themselves
- General emphasis
- Product names
- Brand names
- Website URLs
- Email addresses
- Random italic text
Difference Between <cite>, <q>, and <blockquote>
| Tag | Purpose | Example |
|---|---|---|
| <cite> | Title of a creative work (book, movie, song, etc.) | The book <cite>1984</cite> |
| <q> | Short inline quotation | He said <q>Hello</q> |
| <blockquote> | Long block-level quotation | <blockquote><p>Long quote...</p></blockquote> |
CSS Styling for Citations
Common CSS properties for styling citations:
| CSS Property | Example Value | Effect |
|---|---|---|
| font-style | italic | normal | Italicizes the citation (default is italic) |
| color | #745af2 | Changes citation text color |
| font-weight | 500 | bold | Makes citation text bolder |
| text-decoration | underline | Adds underline to citation |
| font-size | 1.1em | Adjusts citation font size |
Accessibility and SEO Benefits
- Semantic meaning: The
<cite>tag provides semantic information about the content type - Screen readers: Assistive technologies can identify and announce citations appropriately
- Search engines: Search engines understand that the content is a title or reference
- Context: Helps distinguish between regular text and work titles
- Structured data: Can be used with schema.org markup for better SEO
- Content indexing: Improves how search engines index and categorize content
- User clarity: Makes it clear what content represents creative works
Best Practices
- Use for titles only: Only use
<cite>for titles of works, not author names - Combine with links: Wrap citations in
<a>tags when linking to sources - Use with quotes: Pair with
<blockquote>or<q>for proper attribution - Be consistent: Apply
<cite>consistently throughout your content - Don't overuse: Only use for actual creative work titles, not for emphasis
- Maintain styling: Keep default italic styling or apply consistent custom styles
- Provide context: Give enough surrounding text to make the citation meaningful
- Accessibility first: Ensure citations are clear even without visual styling
Common Use Cases
Academic Writing
Use <cite> in bibliographies, references, and inline citations to properly mark work titles.
Blog Posts
When referencing books, movies, or articles in blog content, use <cite> for titles.
Reviews
In movie, book, or music reviews, wrap the title being reviewed in <cite> tags.
News Articles
When referencing other published works or sources, use <cite> for proper attribution.
Related Tags
-
<blockquote>
Defines long block quotations
-
<q>
Defines short inline quotations
-
<abbr>
Defines abbreviations
-
<em>
Defines emphasized text
HTML Free Codes