HTML5 <q> Tag
ExampleMark up a short quotation:
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.