The Q tag defines short quotations. This is an inline tag so you can use it to define quotations in the middle of paragraphs.
Q Web Browser Support:
Q End Tag:
CDATA Text. The following tags are valid within the Q tag:
a, abbr, acronym, applet, b, basefont, bdo, big, br, button, cite, code, dfn, em, font, i, iframe, img, input, kbd, label, map, object, q, s, samp, script, select, small, span, strike, strong, sub, sup, tt, u, var
Q Valid Context:
The Q tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, pre, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var
short quotation with citation
<q cite="http://www.quotableheinlein.com/html/home.html">All cats are black after midnight</q>
short quotation inside a paragraph:
<p>One of my favorite Heinlein quotations is <q>All cats are black after midnight</q>.</p>
Q Special Notes:
- The W3C HTML specification says that the Q tag should be rendered with opening and closing double-quotes. But Internet Explorer does not include them. You can still mark up your text with the Q tag, but your IE customers will not see the “ and ” marks before and afterward.
- The Q can be used with style sheets for display, or with external XML-like tools to record your use of quotations.