Note/Warning/Danger/Info This tag is deprecated in HTML5
HTML <strike> tag
The <strike> tag is used to define strike through a given text to mark it as an incorrect text.
Initially, the <s> was also used to strike through the text but the <s> tag was also deprecated in HTML4 but reconsidered in HTML5. So, it is better to use <del> tag instead of <s> or <strike> tags.
Alternatively, you can also use the CSS property text-decoration: line-through.
Syntax:
<strike>text…</strike>
How Browser will display
INLINE.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
NA | NA | deprecated and replaced with <del> or <s> tags. |
Attributes used with <strike> tag
NONE
Global Attributes
The <strike> tag supports Global attributes.
Event Attributes
The <strike> tag supports Event attributes.
Supporting Browsers
Related Tags
<s> & <del> tags.