Atribut citace HTML
Definice a použití
Atribut
cite
určuje adresu URL dokumentu, která vysvětluje citát nebo proč byl text vložen/změněn.
Platí pro
Atribut
cite
lze použít u následujících prvků:
Prvky | Atribut |
---|---|
<blockquote> | uvést |
<del> | uvést |
<ins> | uvést |
<q> | uvést |
Příklady
Příklad blockquote
Část, která je citována z jiného zdroje:
<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>
Příklad
Smazaný text s adresou URL dokumentu, která vysvětluje, proč byl text smazán:
<p><del cite="del_demo_cite.htm">This text has been deleted</del></p>
Příklad Ins
Vložený text s adresou URL dokumentu, která vysvětluje, proč byl text vložen:
<p>This is a text.
<ins cite="why_inserted.htm">This is an inserted text.</ins></p>
Q Příklad
Zadejte zdrojovou adresu URL nabídky:
<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>
Podpora prohlížeče
Atribut cite
má následující podporu prohlížeče pro každý prvek:
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 |