



#
#
#
代替方法
HTML5でこの要素は廃止されているので使用するべきではありません。
“s”要素や“del”要素を使用することが適切であればそれらの要素を使用します。テキストに特別な意味合いを持たせず取消線を引く場合はスタイルシートの“text-decoration”プロパティで指定します。
.text-strike {
text-decoration: line-through;
}
<p>
文章の中の<span class="text-strike">この部分</span>には取り消し線を引く。
</p>
文章の中のこの部分には取り消し線を引く。
#
仕様書
“strike”要素はHTML3.2で定義されましたが、続くHTML4.0では非推奨となり、HTML5で廃止されました。
定義されている仕様書
![]() |
![]() |
![]() |
![]() |
![]() |
|
---|---|---|---|---|---|
<strike> | ![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
UAスタイルシート
@namespace url(http://www.w3.org/1999/xhtml);
strike {
text-decoration: line-through;
}