HTML - Zitatattribut
Definition und Verwendung
Das
cite
Attribut gibt eine URL zu einem Dokument an, das das Zitat erklärt oder warum der Text eingefügt/geändert wurde.
Gilt für
Das
cite
Attribut kann für die folgenden Elemente verwendet werden:
Elemente | Attribut |
---|---|
<Blockzitat> | zitieren |
<entf> | zitieren |
<ins> | zitieren |
<q> | zitieren |
Beispiele
Blockzitat-Beispiel
Ein Abschnitt, der aus einer anderen Quelle zitiert wird:
<blockquote cite="http://www.worldwildlife.org/who/index.html">
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally. WWF's unique way of working combines global reach with a foundation in science, involves action at every level from local to global, and ensures the delivery of innovative solutions that meet the needs of both people and nature.
</blockquote>
Del-Beispiel
Ein gelöschter Text mit einer URL zu einem Dokument, das erklärt, warum der Text gelöscht wurde:
<p><del cite="del_demo_cite.htm">This text has been deleted</del></p>
Ins Beispiel
Ein eingefügter Text mit einer URL zu einem Dokument, das erklärt, warum der Text eingefügt wurde:
<p>This is a text.
<ins cite="why_inserted.htm">This is an inserted text.</ins></p>
Q Beispiel
Geben Sie die Quell-URL eines Zitats an:
<p>WWF's goal is to:
<q cite="http://www.wwf.org">
Build a future where people live in harmony with nature.</q>
We hope they succeed.</p>
Browser-Unterstützung
Das cite
Attribut hat die folgende Browserunterstützung für jedes Element:
Element | |||||
---|---|---|---|---|---|
blockquote | Yes | Yes | Yes | Yes | Yes |
del | Yes | Yes | Yes | Yes | Yes |
ins | Yes | Yes | Yes | Yes | Yes |
q | Yes | Yes | Yes | Yes | Yes |