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

HTML Referenzhandbuch

Vollständiges HTML-Tag-Verzeichnis

HTML: <q> Tag

Das HTML-Referenz-Element ( <q>) stellt einen geschlossenen und kurzen Inline-Zitatstext dar. Dieses Element wird verwendet, um kurze Texte zu zitieren, daher sollten Zeilenumbrüche nicht eingefügt werden; Für längere Zitate verwenden Sie stattdessen <blockquote>. Dieses Element wird auch als <q>-Element bezeichnet.

Online-Beispiel

Demonstration zweier kurzer Zitate:

!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Verwendung des HTML q-Elements (Basis-Tutorial-Website oldtoolbag.com)</title>
</head>
<body>
<h1>Überschrift 1</h1>
<p>Dies ist der Inhalt, der unter der Überschrift erscheinen würde 1.</p>
<p>Der Road Runner sagt immer: <q>Beep Beep/q>.</p>
<p>Ob oder sagt der Road Runner://de.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 definitions 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's global attributes.

event attributes

<q> Tag supports HTML's event attributes.