HTML5 <q> Tag

Example

Mark up a short quotation:

<p>QcTutorials's goal is to:
<q cite="http://www.qctutorials.com">
build a future where people live in harmony with nature
</q> we hope they succeed.</p>
Code it Online »

Definition and Usage

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

Browser often insert quotation marks around the quotation.

Tips and Notes

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

Hint: 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.


Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!