<q> tag indicates that the enclosed text is an inline quote. It may contain a
cite attribute with a link to the source.
<p>The Webmaster said <q>We're here to help you master the web</q>.
I agree with that statement.</p>
The Webmaster said
We're here to help you master the web. I agree with that statement.
- Both the opening and closing tags are required.
- Quotation marks must not be inserted before, after, or inside the
<q>tags. They will be inserted automatically by the browser.
- Content inside a
<q>must be quoted from a source. A link to the source, if any, should be specified in the
citeattribute. These are primarily intended for server-side scripts collecting statistics, not for general readers.
<q>element should not be used for items in quotation marks that do not quote anything. For example, a sarcastic statement.
<q>element is optional. The use of simple quotation marks is equally correct.
<q> element supports the Global Attributes, as well as the following:
citeattribute specifies the source URL for the quoted information. These are primarily intended for server-side scripts collecting statistics, not for general readers.
<blockquote>for long block-level quotations.
<q>for smaller inline quotations.