cite

The cite attribute specifies the source of a quotation or blockquote, providing a reference for the quoted material.

cite attribute

The cite attribute in HTML provides a reference or citation for <q> and <blockquote>, indicating the source of the quoted text. It can also be used with <del> and <ins> to cite the source of deletions or insertions. The value should be a valid URL that points to the source document or the specific location within it that contains the quoted or referenced material.

Syntax

index.html
<tagname cite="URL">

Example

This is a longer block of qarpeo text that may extend for several sentences or paragraphs. It is from an external source, and the cite attribute provides a reference to that source.

index.html
<blockquote cite="https://institute.qarpeo.com">
  <p>This is a longer block of qarpeo text that may extend for several sentences or paragraphs. It is from an external source, and the cite attribute provides a reference to that source.</p>
</blockquote>
A person's name should not be used as the title of a work.

Values

  • URL
    • A link or location to a document that provides an explanation for the quotation or modification of text.

Applies To

The cite attribute is supported by the following HTML elements.

Del Example

Content has been removed, with a link provided to explain the reason for its removal.

The del cite attribute

This text has been deleted

index.html
<h1>The del cite attribute</h1>
<p><del cite="del_demo_cite.htm">This text has been deleted</del></p>

Conclusion

The cite attribute in HTML is used to provide a reference or source for quoted content, typically in <blockquote>, <q>, <del>, and <ins> elements. It should contain a valid URL pointing to the source document or specific location of the cited material. This helps clarify the origin of the quoted or modified content for users.