cite 属性は、引用やテキストが挿入/変更された理由を説明する文書への URL を指定します。
cite 属性は、以下の要素で使用することができます:
要素 | 属性 |
---|---|
<blockquote> | cite |
<del> | cite |
<ins> | cite |
<q> | cite |
他のソースから引用したセクション:
<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>
Try it Yourself ❯
テキストが削除された理由を説明する文書への URL を持った削除テキスト:
<p><del cite="del_demo_cite.htm">This text has been deleted</del></p>
Try it Yourself ❯
テキストが挿入された理由を説明する文書への URL を持った挿入テキスト:
<p>This is a text.
<ins cite="why_inserted.htm">This is an inserted text.</ins></p>
Try it Yourself ❯
引用のソース URL を指定します:
<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>
Try it Yourself ❯
cite
属性は、要素ごとに以下のブラウザがサポートしています。
要素 | |||||
---|---|---|---|---|---|
blockquote | Yes | Yes | Yes | Yes | Yes |
del | Yes | Yes | Yes | Yes | Yes |
ins | Yes | Yes | Yes | Yes | Yes |
q | Yes | Yes | Yes | Yes | Yes |