HTML <q> tag
Definition and Usage
The
<q> tag defines the start of a short quotation.
Differences Between HTML and XHTML
NONE
Tips and Notes
Note: According to the HTML 4.01 spec, the q element should render
with delimiting quotation marks. This works in Mozilla browsers (Firefox) and
Opera. Internet Explorer ignores this entirely.
Example
| Source |
Output |
| Here comes a short quotation: <q>here is a
short quotation here is a short quotation</q>
|
Here comes a short quotation: here is a
short quotation here is a short quotation
|
Optional Attributes
DTD indicates in which DTD the attribute is
allowed. S=Strict, T=Transitional, and F=Frameset.
| Attribute |
Value |
Description |
DTD |
| cite |
citation |
Defines a citation for the quotation |
STF |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
| onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
Try-It-Yourself Demos
Quotations
How to handle long and short quotations.
|