Definisi dan Penggunaan
The cite atribut menentukan URL ke dokumen yang menjelaskan kutipan, atau mengapa teks itu dimasukkan / diubah.
Berlaku untuk
The cite atribut dapat digunakan pada unsur-unsur berikut:
elemen | Atribut |
---|---|
<blockquote> | cite |
<del> | cite |
<ins> | cite |
<q> | cite |
contoh
Blockquote Contoh
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>
Cobalah sendiri " Del Contoh
Sebuah teks yang dihapus, dengan URL ke dokumen yang menjelaskan mengapa teks itu dihapus:
<p><del cite="del_demo_cite.htm">This text has been deleted</del></p>
Cobalah sendiri " Ins Contoh
Teks dimasukkan, dengan URL ke dokumen yang menjelaskan mengapa teks itu dimasukkan:
<p>This is a text.
<ins cite="why_inserted.htm">This is an inserted text.</ins></p>
Cobalah sendiri " 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>
Cobalah sendiri " Dukungan Browser
The cite
atribut memiliki dukungan browser berikut untuk setiap elemen:
Elemen | |||||
---|---|---|---|---|---|
blockquote | iya nih | iya nih | iya nih | iya nih | iya nih |
del | iya nih | iya nih | iya nih | iya nih | iya nih |
ins | iya nih | iya nih | iya nih | iya nih | iya nih |
q | iya nih | iya nih | iya nih | iya nih | iya nih |