HTML: The Markup Language

qquoted text # T

The q element represents phrasing content quoted from another source.

Permitted contents #

Permitted attributes #

global attributes
Any attributes permitted globally.
cite = URL potentially surrounded by spaces #
Specifies the address of the source of the quoted text.

Tag omission #

A q element must have both a start tag and an end tag.

Permitted parent elements #

any element that can contain phrasing elements

DOM interface #

interface HTMLQuoteElement : HTMLElement {
           attribute DOMString cite;

Typical default display properties #

q {
display: inline; }
q:before {
content: open-quote; }
q:after {
content: close-quote; }