q

< html‎ | elements
Jump to: navigation, search

q – quote

This article is In Progress.


W3C Editor's Draft

q

For technical reasons, the title of this article is not the text used to call this API. Instead, use q

Summary

The q element represents some phrasing content quoted from another source.


Overview Table

DOM Interface HTMLQuoteElement

Do not use quote characters (', ", ``, etc) when using the q element. If used with the html/elements/cite element, the cite must contain a valid url.


Compatibility

Do you think this data can be improved? You can ask to add by opening an issue or make a pull request.

Desktop

FeaturesChromeFirefoxInternet ExplorerOperaSafari
Basic support
?
Yes
1.0
Yes
?
Yes
?
Yes
?
Yes

Mobile

FeaturesAndroidFirefox MobileIE MobileOpera MobileSafari Mobile
Basic support
?
Yes
1.0
Yes
?
Yes
?
Yes
?
Yes

Examples

This example uses the q element to set apart a quotation in text.

HTML

<p>She then said, <q>See you around, kiddo!</q></p>

This example shows that the q element can have child elements.

HTML

<p>Chicken Little: <q>The sky is falling…
the sky is falling… <em>the sky is falling!</em></q></p>

Usage

The q should be used to denote short, inline quotes that do not need a paragraph of their own. For longer quotes, please use the blockquote element.


Related specifications

Specification Status Related Changes
HTML5 W3C Editor's Draft

See also

Other articles

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]