The HTML <q></q>
element, or quote, indicates that the enclosed text is a short inline quotation. This element is intended for short quotations that don't require paragraph breaks; for long quotations use the <blockquote>
element.
Most modern standards-aware browsers, like Mozilla Firefox, Opera, and Safari, should add quotation marks ("") around text enclosed within the <q>
element.
Some browsers, like Internet Explorer, may not make any sort of style change for quotations, but it is possible to apply a style rule.
Attributes
Attribute | Value | Description |
---|---|---|
cite |
URL | The value of this attribute is a URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote. |
HTML example:
When your hard drive crashes, this is what most people will say: <q>WTF!!!! NOOOOOOOOOO!!!!!!!!!!!!</q>