HTML slt;q?gt; cite property

HTML q cite attribute HTML

The cite property defines the source of the document reference, refer to the following example:

Specify the source URL of the reference:

<p>WWF's goal is to:
<q cite="http://www.wwf.org">
Build a future where people live in harmony with nature.</q>
We hope they succeed.</p>

Try it out . . .

Browser support

HTML q cite attribute HTML q cite attribute HTML q cite attribute HTML q cite attribute HTML q cite attribute

The cite property does not have visual effects in a normal web browser, but can be used by screen readers.


Definitions and usages

The cite property specifies the source URL of the reference.

Tip: The value of the property is a URL that is included in quotation marks and points to an online document, and, if possible, the exact location of the reference in the document.


The difference between HTML 4.01 and HTML5

No.


Grammar

<q cite="URL">

The property value

value describe
URL The source URL of the reference is specified.

Possible value:

  • Absolute URL - pointing to another website (such as href = "http://www.example.com/page.htm" Rel = "External Nofollow" target = "_ blank")
  • Relative URL - pointing to a file within the website (such as href = "page.htm")


HTML q cite attribute HTML