HTML Tags

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:

HTML / XHTML: <cite> ... </cite>

The example below shows the <cite> tag in action.

<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.

Browsers Icon

Basic Support—

  • Firefox 1+
  • Google Chrome 1+
  • Internet Explorer 2+
  • Apple Safari 1+
  • Opera 4+

Further Reading

See tutorial on: HTML Text Formatting.

Related tag: <blockquote>.

Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties