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.
Here are some sample codes
Better to use <del> in place of <strike> tag as it is Obsolete and not supported in HTML5.
CITE : A URI explaining the reasons for change DATETIME : Date and time of deletion of the range of text.
Example of Attributes
This is normal part and This text has been deleted , this part is normal again.
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.
Difference between <strike> and <del>
This is normal text this part is strike out This is normal. This part is deleted text . This 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
This article is written by plus2net.com team.
plus2net.com
✖
We use cookies to improve your browsing experience. . Learn more