English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Online tools

Reference manual

HTML: <q> tag

: <mark> tag

HTML citation tag ( <q>) represents a closed and short inline citation text. This tag is used to quote short text, so please do not introduce line breaks; for the citation of long text, use <blockquote> instead. This tag is also commonly referred to as the <q>element.

Online Example

Example
<!doctype html>
<html>
<head>-8">
<meta charset="UTF3codebox.com)</title>/title>
</head>
<body>
<h1>Heading 1</h1>
<p>This is the content that would appear under Heading 1./p>
<p>The Road Runner always says, <q>Beep Beep</q>./">.</q>./p>
<p>Or does the Road Runner say, <q cite="https://www.oldtoolbag.com">Meep Meep</q>?</p>
</body>
</html>
Test to see ‹/›

In this HTML5In the HTML document example, we created two <q> tags. The first <q> tag contains the text 'Beep Beep'. The second <q> tag contains the text 'Meep Meep' and uses the cite attribute.

Browser compatibility

IEFirefoxOperaChromeSafari

All major browsers support the <q> tag.

Tag definition and usage instructions

The <q> tag defines a short quote.

For long block quotes, please use the <blockquote> tag.

Browsers often insert quotes around such quotes.

Tips and Notes

Please use <blockquote> Used to mark a block quote from another source.

Attribute

AttributeValueDescription
citeURLSpecifies the URL of the referenced source.

Global attributes

<q> tag supports HTML global attributes.

event attributes

<q> tag supports HTML event attributes.