From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/html/element/del/index.html | 148 +++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 files/ja/web/html/element/del/index.html (limited to 'files/ja/web/html/element/del/index.html') diff --git a/files/ja/web/html/element/del/index.html b/files/ja/web/html/element/del/index.html new file mode 100644 index 0000000000..4c944b0a2f --- /dev/null +++ b/files/ja/web/html/element/del/index.html @@ -0,0 +1,148 @@ +--- +title: ': 削除文字列要素' +slug: Web/HTML/Element/del +tags: + - HTML + - HTML 編集 + - 'HTML:フローコンテンツ' + - 'HTML:記述コンテンツ' + - Reference + - Web + - 削除文字列 + - 要素 +translation_of: Web/HTML/Element/del +--- +
{{HTMLRef}}
+ +

HTML の <del> 要素は、文書から削除された文字列の範囲を表します。これは例えば、「変更の追跡」や、ソースコードの差分情報を描画するときに使用することができます。 {{HTMLElement("ins")}} 要素は逆の目的に、文書に追加された文字列を示すために用いることができます。

+ +
{{EmbedInteractiveExample("pages/tabbed/del.html", "tabbed-standard")}}
+ + + +

一般的にこの要素は (必ずではありませんが) 打ち消し線のスタイルを伴って描画されます。

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
コンテンツカテゴリ記述コンテンツ または フローコンテンツ
許可されている内容透過的コンテンツ
タグの省略{{no_tag_omission}}
許可されている親要素記述コンテンツを受け入れるすべての要素
許可されている ARIA ロールすべて
DOM インターフェイス{{domxref("HTMLModElement")}}
+ +

属性

+ +

この要素はグローバル属性を持ちます。

+ +
+
{{htmlattrdef("cite")}}
+
変更についての説明を記したリソース(例えば、議事録など)への URI を示す。
+
{{htmlattrdef("datetime")}}
+
この属性は変更日時を示し、有効な日付文字列と任意の時刻文字列でなくてはなりません。値を時刻および日付の文字列として解釈できない場合は、要素に関連付けられたタイムスタンプはないものと解釈されます。日付のない文字列の書式については、日付の文字列を参照してください。日付と時刻の両方を含んだ文字列の書式は、地方時の日付と時刻の文字列にあります。
+
+ +

+ +
<p><del>This text has been deleted</del>,
+here is the rest of the paragraph.</p>
+<del><p>This paragraph has been deleted.</p></del>
+ +

結果

+ +

{{EmbedLiveSample("Examples")}}

+ +

アクセシビリティの考慮事項

+ +

del 要素が存在することは、多くの読み上げ技術の既定の設定ではアナウンスされません。 CSS の {{cssxref("::before")}} 及び {{cssxref("::after")}} 疑似要素と共に {{cssxref("content")}} プロパティを使うことでアナウンスさせることができます。

+ +
del::before,
+del::after {
+  clip-path: inset(100%);
+  clip: rect(1px, 1px, 1px, 1px);
+  height: 1px;
+  overflow: hidden;
+  position: absolute;
+  white-space: nowrap;
+  width: 1px;
+}
+
+del::before {
+  content: " [削除開始] ";
+}
+
+del::after {
+  content: " [削除終了] ";
+}
+
+ +

読み上げソフトを使用する人によっては、特に冗長になるコンテンツのアナウンスを意図的に無効にしていることがあります。このため、この手法を悪用しないようにすることは重要であり、コンテンツが削除されていることを知らないと理解に影響するような場面でのみ使用するようにしてください。

+ + + +

仕様書

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('HTML WHATWG', 'edits.html#the-del-element', '<del>')}}{{Spec2('HTML WHATWG')}}
{{SpecName('HTML5 W3C', 'edits.html#the-del-element', '<del>')}}{{Spec2('HTML5 W3C')}}
{{SpecName('HTML4.01', 'struct/text.html#h-9.4', '<del>')}}{{Spec2('HTML4.01')}}
+ +

ブラウザーの互換性

+ + + +

{{Compat("html.elements.del")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf