Breaking

Wednesday, May 1, 2019

HTML cite Tag


Example

Define the title of a work with the <cite> tag:
<p><cite>The Scream</cite> by Edward Munch. Painted in 1893.</p>
Try it Yourself »

Definition and Usage

The <cite> tag defines the title of a work (e.g. a book, a song, a movie, a TV show, a painting, a sculpture, etc.).
Note: A person's name is not the title of a work.

Browser Support

Element
<cite>YesYesYesYesYes

Differences Between HTML 4.01 and HTML5

In HTML5, the <cite> tag defines the title of a work.
In HTML 4.01, the <cite> tag defines a citation.

Global Attributes

The <cite> tag also supports the Global Attributes in HTML.

Event Attributes

The <cite> tag also supports the Event Attributes in HTML.

Related Pages

HTML DOM reference: Cite Object

Default CSS Settings

Most browsers will display the <cite> element with the following default values:

Example

cite { 
  font-style: italic;
}
Try it Yourself »

No comments:

Post a Comment