HTML <q> tag
The <q> tag defines short quotations.
Syntax:
<q>text…</q>
Example
<p><q>Bangalore officially known as Bengaluru is the capital of Karnataka.</q> </p>
How Browser will display
INLINE.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
None | None | None |
Attributes used with <q> tag
Attribute | Description |
---|---|
cite | It describes the URL to other document where it explains why text was deleted/inserted/quoted. |
Global Attributes
The <q> tag supports Global attributes.
Event Attributes
The <q> tag supports Event attributes.
Supporting Browsers
Related Tags
<cite>, <p>, <abbr>, <address>, <bdo>, <define> tag.
The <blockquote> tag is similar to <q> tag but it is used for large quotations.