asp.net.ph

Skip Navigation Links

CITE Attribute | cite Property

HTML Element Attributes


Specifies the source of a quotation.

Applies To: BLOCKQUOTE   DEL   INS   Q

Syntax


Inline <element cite = strCitation ... >
Script object.cite = strCitation

Possible Values


strCitationString representing the reference for the quote.

The property is read/write with no default value.

Remarks

The cite attribute usually represents a URL that designates a source document or message for the information quoted.

This attribute is intended to point to information explaining the context or the reference for the quote.

The cite attribute does not render with the quoted content, as it is primarily intended for private use by server-side scripts collecting statistics about a site’s use of quotations, not for readers.

Authors though may allow users to follow a text representation of the source using the CITE element.

Example

Here, a <blockquote> element is used in conjunction with a cite attribute as well as a representation of the citation using a <cite> element.

<div>
   <blockquote cite="http://somewhere.com">
      Four score and seven years ago our fathers brought forth, upon this continent,<br>
      a new nation, conceived in Liberty, and dedicated to the proposition<br>
      that all men are created equal.
   </blockquote>
   ~ Abraham Lincoln, <cite>The Gettysburg Address</cite>
</div>
Four score and seven years ago our fathers brought forth, upon this continent,
a new nation, conceived in Liberty, and dedicated to the proposition
that all men are created equal.
~ Abraham Lincoln, The Gettysburg Address
Applies To

BLOCKQUOTE   DEL   INS   Q



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note