<strike> tag

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>

Example

<p> A room without books is like a <strike>body</strike> without a soul</p>

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

supporting-browsers for tags

Related Tags

<s> & <del> tags.

Tutorials for all brains!