HTML <strike>Tag -Not supported in HTML5


Examples

Add a strikethrough to text:

<p>Version 2.0 is <strike>not yet available!</strike> now available!</p>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the <strike> tag.


Tag Definition and Usage Instructions

HTML5 does not support the <strike> tag. Please use the<del>tag instead.

In HTML 4.01, the <strike> elementis deprecated。

<strike> defines strikethrough text.


Standard Attributes

In HTML 4.01, the <strike> tag supports the following standard attributes:

Attribute Value Description
class classname Specifies the class name of an element
dir rtl
ltr
Specifies the text direction of the content in an element
id id Specifies the unique id of an element
lang language_code Specifies the language code of the content in an element
style style_definition Specifies the inline style of an element
title text Specifies additional information about an element

For a complete description, please visitStandard Attributes。


Event Attributes

In HTML 4.01, the <s> and <strike> tags support the following event attributes:

Attribute Value Description
onclick script Script to be executed when the mouse is clicked
ondblclick script Script to be executed when the mouse is double-clicked
onmousedown script Script to be executed when a mouse button is pressed down
onmousemove script Script to be executed when the mouse pointer moves
onmouseout script Script to be executed when the mouse pointer moves out of an element
onmouseover script Script to be executed when the mouse pointer hovers over an element
onmouseup script Script to be executed when a mouse button is released
onkeydown script Script to be executed when a key is pressed
onkeypress script Script to be executed when a key is pressed and then released
onkeyup script Script to be executed when a key is released

For a complete description, please visitEvent Attributes。

Other Extensions