English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
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.
IEFirefoxOperaChromeSafari
All major browsers support the <q> tag.
The <q> tag defines a short quote.
For long block quotes, please use the <blockquote> tag.
Browsers often insert quotes around such quotes.
Please use <blockquote> Used to mark a block quote from another source.
Attribute | Value | Description |
---|---|---|
cite | URL | Specifies the URL of the referenced source. |
<q> Tag supports HTML's global attributes.
<q> Tag supports HTML's event attributes.