Table of Contents
INTRODUCTION
The HTML <cite> element is used to highlight/mark the title of a creative work. This tag should not be used for person names unless they are the author of a work being cited. It's not meant for attributing people in general conversation.
Display: The contents of <cite> element is shown by browser in italics. You can customise this by using the CSS font-style property.
A creative work could be any one of the following.
- book
- research paper
- essay
- poem
- Musical concert
- play or film script
- Song
- television show
- film
- game
- sculpture
- painting
- theatrical production
- play
- opera
- musical
- exhibition
- legal case report
- computer program
- website or web page
- blog post or forum post or comment
- tweet
- Facebook post
- any other creative work
Syntax:
<cite> --text-- </cite>
Example:
<p>One of my favorite books is <cite>The Great Gatsby</cite> by F. Scott Fitzgerald.</p>
Output:
One of my favorite books is The Great Gatsby by F. Scott Fitzgerald.
Tag Omission
The HTML <cite> element must have both start tag and end tag.
ATTRIBUTES
The <cite> element only has global attributes.
Frequently Asked Questions (FAQ)
What is the Difference Between HTML q Tag, blockquote tag and cite tag ?
The HTML q - Inline Quotation element is used for short, inline quotes within a paragraph. Browsers automatically add quotation marks around the text.
The HTML cite element is used to reference the title of a creative work, such as a book, article, movie, or painting. It is rendered in italics by default.
Can the HTML cite tag be used within list items?
Is it valid to use the HTML <cite> tag inside a link (<a>) tag?
For example:
<a href="https://example.com/book"><cite>The Great Book</cite></a>
The <cite> element marks "The Great Book" as the title of a cited work.
The <a> element makes the citation clickable, linking to the source or relevant page.