HTML <cite>
Tag
Topic: HTML5 Tags ReferencePrev|Next
Description
The <cite>
tag indicates a citation or reference to another source.
Text inside the <cite>
tag usually rendered in italics by the most of the browser, but this style can be overridden using CSS.
The following table summarizes the usages context and the version history of this tag.
Placement: | Inline |
---|---|
Content: | Inline and text |
Start/End Tag: | Start tag: required, End tag: required |
Version: | HTML 2, 3.2, 4, 4.01, 5 |
Tip: You can use the cite
attribute on a <blockquote>
or <q>
element to reference an online resource for a source.
Syntax
The basic syntax of the <cite>
tag is given with:
The example below shows the <cite>
tag in action.
Example
Try this code »<p>My favorite movie is <cite>star wars</cite>.</p>
<p>My another favorite movie is <cite>harry potter</cite>.</p>
Tag-Specific Attributes
The <cite>
tag doesn't have any specific attribute.
Global Attributes
Like all other HTML tags, the <cite>
tag supports the global attributes in HTML5.
Event Attributes
The <cite>
tag also supports the event attributes in HTML5.
Browser Compatibility
The <cite>
tag is supported in all major modern browsers.
Basic Support—
|
Further Reading
See tutorial on: HTML Text Formatting.
Related tag: <blockquote>
.