HTML5 <q> Tag

Example

Mark up a short 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 »

Definition and Usage

The <q> tag defines the start of a short quotation.

Browser often insert quotation marks around the quotation.


Differences Between HTML 4.01 and HTML5

NONE


Tips and Notes

Tip: Use the cite attribute to define a reference to where the quotation was taken from.

Tip: Use the blockquote element to mark up long quotations.


Attributes

Attribute Value Description
cite url Defines a citation for the quotation

Standard Attributes

The <q> tag also supports the Standard Attributes in HTML5.


Event Attributes

The <q> tag also supports the Event Attributes in HTML5.