HTML <q> citeAttribute

HTML q 标签参考手册HTML <q> Tag

Example

Specifies the source URL of the quotation:

<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 Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The cite attribute has no visual effect in ordinary web browsers, but can be used by screen readers.


Definition and Usage

The cite attribute specifies the source URL of the quotation.


Differences between HTML 4.01 and HTML5

None.


Syntax

<q cite="URL">

Attribute Values

Value Description
URL Specifies the source URL of the quotation.

Possible values:

  • Absolute URL - points to another website (e.g. href="http://www.example.com/page.htm")
  • Relative URL - points to a file within a website (e.g. href="page.htm.html")


HTML q 标签参考手册HTML <q> Tag Other Extensions