Atribut kutipan HTML
Definisi dan Penggunaan
Atribut
cite
menentukan URL ke dokumen yang menjelaskan kutipan, atau mengapa teks disisipkan/diubah.
Berlaku untuk
Atribut
cite
dapat digunakan pada elemen berikut:
Elemen | Atribut |
---|---|
<blockquote> | mengutip |
<del> | mengutip |
<in> | mengutip |
<q> | mengutip |
Contoh
Contoh Blockquote
Bagian yang dikutip dari sumber lain:
<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>
Contoh Del
Teks yang dihapus, dengan URL ke dokumen yang menjelaskan mengapa teks dihapus:
<p><del cite="del_demo_cite.htm">This text has been deleted</del></p>
Contoh Ins
Teks yang disisipkan, dengan URL ke dokumen yang menjelaskan mengapa teks disisipkan:
<p>This is a text.
<ins cite="why_inserted.htm">This is an inserted text.</ins></p>
Q Contoh
Tentukan URL sumber kutipan:
<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>
Dukungan Peramban
Atribut cite
memiliki dukungan browser berikut untuk setiap elemen:
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 |