Saturday, December 2, 2023
HomeVideo EditingHTML Aspect: cite

HTML Aspect: cite


The HTML <cite> aspect (the quotation aspect) represents a reference to a artistic work, equivalent to a ebook, a music, a film, a chunk of artwork, or an online web page.

The content material contained in the <cite> aspect must be a reference to the title of the work. The reference could also be within the type of a quotation, a URL, or every other type of textual content that signifies the supply of the work.

Syntax

1
<cite>Reference to a artistic work</cite>

Examples

Right here’s an vital bit of information for you, with right quotation, in case you’re planning a pub quiz any time quickly.

Syntax

1
<p>Based on <cite>The Hitchhiker's Information to the Galaxy</cite>, the reply to life, the universe, and every part is 42.</p>

End result

Attributes

The <cite> aspect doesn’t have any attributes of its personal. Nonetheless, it helps World Attributes in HTML. World Attributes are widespread to all HTML parts and can be utilized on all of them (although they could not have a lot of an impact on a few of them).

Content material

The content material of the <cite> aspect must be a reference to the artistic work being cited. This is usually a title, a URL, a quotation, or every other type of textual content that signifies the supply of the work.

Accessibility

The usage of the <cite> aspect is vital for accessibility, because it gives context and details about the supply of the content material.

Did You Know?

The <cite> aspect is usually used at the side of the <blockquote> aspect, to mark up quotes and citations in HTML.

Right here’s an instance. The <blockquote> aspect could include a cite attribute, which references the URL of the supply, and a <cite> tag for textual illustration.

Study Extra

To study extra concerning the <cite> aspect, try the official HTML specification.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments