HTML <q> tag


Short quotation marks:

<q> Here is a short quotation here is a short quotation </q>

Try it yourself

Browser Support

IE Firefox Chrome Safari Opera

All browsers support <q> tag.

Definition and Usage

<Q> tag defines a short quotation.

Browser add quotation marks around the often cited content.

<Q> and <blockquote> distinction

<q> tag is essentially the <blockquote> is the same. The difference is that they display and application. <Q> tag is used to reference within a short line. If you need to separate the relatively long portion from the surrounding content (usually displayed as an indented block), use the <blockquote> tag.

Differences between HTML and XHTML


Tips and Notes:

Tip: According to the HTML 4.01 specification, q element should be used to render the demarcation quotes, words, text q must contain elements to begin and end with a quotation mark. Mozilla browser (Firefox) and Opera comply with this requirement, but Internet Explorer does not support this provision. As a result, if you want to use the <q> tag, but also with their own quotes to meet the Internet Explorer, then it would have in the standards-compliant browser to use two sets of quotation marks. Still, we recommend the use of <q> tag, not only because we like the standard, but also because we foresee will be applied to document processing, display information extraction and so on.

Optional attributes

Attributes value description
cite citation The definition of the origin or source reference (citation)

Global Properties

<abbr> tag supports HTML in the global properties .

Event Properties

<abbr> tag supports HTML in the event properties .

Examples TIY

This example demonstrates how to implement different lengths of quotation.

Related Pages

HTML DOM Reference: Stock- ET Net Objects