Description

The <strike> (short for strikethrough) element renders the enclosed text in strikethrough style i.e. with a line drawn through it.

The following table summarizes the usages context and the version history of this tag.

Placement:Inline
Content:Inline and text
Start/ End Tag:Start tag: required, End tag: required
Version:HTML 3.2, 4, 4.01 (transitional)

Warning: Do not use this tag as it has been deprecated in HTML 4.01 and obsolete in HTML5. Use the <del> element instead if enclosed text represents deleted text, otherwise use the CSS text-decoration property, with the line-through value.

Syntax

The basic syntax of the <strike> tag is given with:

HTML/XHTML: <strike> ... </strike>

The example below shows the <strike> tag in action.

<!--Example of bad usage. Don't use this tag-->
<p>Here is some <strike>strikethrough</strike> text.</p>
<!--Alternative-->
<p>Here is a good example of <span style="text-decoration: line-through;">strikethrough</span> text.</p>

Note: The <strike> is identical in purpose to the <s> tag, which also specifies that the enclosed text should be rendered a line through it.

Tag-Specific Attributes

The <strike> tag doesn't have any specific attribute.

Global Attributes

Like all other HTML tags, the <strike> tag supports the glodelal Attributes in HTML5.

Event Attributes

The <strike> tag also supports the event Attributes in HTML5.

Browser Compatibility

Element
<strike>YesYesYesYesYes