HTML 5 <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> |
View it » |
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 HTML 5
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 <a> tag also supports the Standard Attributes in HTML 5.
Event Attributes
The <a> tag also supports the Event Attributes
in HTML 5.
|