This is normal text . This range of text is deleted. This part is normal
The code is here
This is normal text . <del>This range of text is deleted</del>. This part is normal
Strikeout or strikethrough text can be displayed by using html <strike> tag also. It is recommended to use <del> tag than using strike tag as del is supported in higher versions of html. <style>.strike_font {
text-decoration: line-through;
}</style>
This is normak text This part is strikethroug This is normal again.
<style>.strike_font {
text-decoration: line-through;
color:#f00000;
}</style>
This is normak text This part is strikethroug This is normal again.
CITE
: A URI explaining the reasons for change DATETIME
: Date and time of deletion of the range of text.
This is normal part and <del datetime="2018-12-16T21:53:03Z" cite="plus2net.com/html_tutorial/site_map.php">This text has been deleted</del> , this part is normal again.
This is normal text <strike>this part is strike out</strike> This is normal. <del>This part is deleted text</del> . This is normal again
Tag | Display | Description | HTML5 Support |
<DEL> | Strike-through font | Part of the text which is removed or deleted | Yes |
<STRIKE> | Strike-through font | Part of the text which is not accurate or not relevant | No |
<S> | Strike-through font | Part of the text which is not accurate or not relevant | Yes |
<html>
<head>
<title>DEL tag with style </title>
<META NAME="DESCRIPTION" CONTENT="HTML del tag demo style ">
<META NAME="KEYWORDS" CONTENT="HTML del demo style ">
<meta name="viewport" content="width=device-width,minimum-scale=1">
<style>
.strike_font1 {
text-decoration: line-through;
}
.strike_font2 {
text-decoration: line-through;
color:#f00000;
}
</style>
</head>
<body style="margin:50;">
<p>This is normak text <span class='strike_font1'>This part is strikethroug</span> This is normal again. </p>
<br>
<p>This is normak text <span class='strike_font2'>This part is strikethroug</span> This is normal again. </p>
</body>
</html>