<cite>
<cite>
Tag
The <cite>
element in HTML is used to reference the title of a cited work. It typically applies to books, articles, movies, and other creative works. Most browsers display <cite>
text in italics to indicate a citation.
Syntax
<cite>Title of the Work</cite>
cite
Demo
According to To Kill a Mockingbird by Harper Lee, "You never really understand a person until you consider things from his point of view."
<p>
According to <cite>To Kill a Mockingbird</cite> by Harper Lee, "You never really understand a person until you consider things from his point of view."
</p>
Attributes
The <cite>
element supports global attributes.
Usage Notes
A <cite>
element is used for referencing creative works such as:
- Books
- Research papers
- Essays
- Poems
- Songs and musical scores
- Plays, films, and scripts
- TV shows
- Video games
- Sculptures and paintings
- Theatrical productions
- Exhibitions
- Legal case reports
- Computer programs
- Websites, web pages, and blog posts
- Social media posts (tweets, Facebook posts, forum comments, etc.)
- Written or oral statements
<blockquote>
or <q>
element, use the cite
attribute on that element.Conclusion
The <cite>
element is essential for referencing the titles of creative works, helping provide proper attribution and context. It supports various media types, from books and films to websites and legal documents. When quoting external sources, the cite
attribute can also be used within the <blockquote>
or <q>
elements to specify the original source.
<center>
The HTML <center> element, now deprecated, was utilized to center text or content within its container. CSS is now the preferred method for alignment and layout.
<code>
The HTML <code> element denotes a section of computer code, usually rendered in a monospace font to set it apart from standard text.