Attributo di citazione HTML
Definizione e utilizzo
L'
cite
attributo specifica un URL a un documento che spiega la citazione o perché il testo è stato inserito/modificato.
Si applica a
L'
cite
attributo può essere utilizzato sui seguenti elementi:
Elementi | Attributo |
---|---|
<citazione in blocco> | citare |
<del> | citare |
<in> | citare |
<q> | citare |
Esempi
Esempio di citazione in blocco
Una sezione che è citata da un'altra fonte:
<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 Esempio
Un testo eliminato, con un URL a un documento che spiega perché il testo è stato eliminato:
<p><del cite="del_demo_cite.htm">This text has been deleted</del></p>
Ins Esempio
Un testo inserito, con un URL a un documento che spiega perché il testo è stato inserito:
<p>This is a text.
<ins cite="why_inserted.htm">This is an inserted text.</ins></p>
Q Esempio
Specifica l'URL di origine di un preventivo:
<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>
Supporto browser
L' cite
attributo ha il seguente supporto del browser per ogni elemento:
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 |