Tag Description
The q tag is used to define a short quotation. The browser will insert quotation marks around the quotation.
This tag has the form:
<q cite="URL">
text
</q>
HTML5 and HTML4.01 Differences
None.
Attributes
Attribute | Value | Description |
---|---|---|
cite | URL | Specifies the source of a quotation |
Global Attributes
This tag also supports the HTML Global Attributes.
Event Attributes
This tag also supports the HTML Event Attributes.
Examples
The following example shows the basic use of this tag:
<q>Quotation text</q>
This produces the following result:
Quotation text
Browser Support
Chrome | Firefox | IE | Safari | Opera |
---|---|---|---|---|
Doctype Declaration Support
The following table lists the doctype declarations this element may appear in:
HTML4.01 / XHTML1.0 | XHTML 1.1 | HTML 5 | ||
---|---|---|---|---|
Traditional | Strict | Frameset | ||
Miscellaneous Information
Defined In: | HTML4 |
---|---|
Empty Tag: | No |