HTML cite 属性

前へ 全ての HTML 属性 次へ

定義と用法

cite 属性は、引用やテキストが挿入/変更された理由を説明する文書への URL を指定します。


適用

cite 属性は、以下の要素で使用することができます:

要素 属性
<blockquote> cite
<del> cite
<ins> cite
<q> cite

例s

Blockquote の例

他のソースから引用したセクション:

<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 ❯

Del の例

テキストが削除された理由を説明する文書への URL を持った削除テキスト:

<p><del cite="del_demo_cite.htm">This text has been deleted</del></p>
Try it Yourself ❯

Ins の例

テキストが挿入された理由を説明する文書への URL を持った挿入テキスト:

<p>This is a text.
<ins cite="why_inserted.htm">This is an inserted text.</ins></p>
Try it Yourself ❯

Q の例

引用のソース 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

前へ 全ての HTML 属性 次へ