English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML reference manual

HTML tag大全

HTML: <strike> tag

The HTML <strike> element (or HTML strikethrough element) places a strikethrough on text.

Note: This element in HTML4 and XHTML1 is deprecated and has been removed in HTML5 Remove it from the middle. If it makes sense semantically (i.e., if it represents deleted content), use <del> instead. In all other cases, use <s>.

Online example

Add strikethrough to text:

!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML strike tag usage (Basic Tutorial Website oldtoolbag.com)</title>
</head>
<body>
<strike>Today's Special: Salmon</<strike> SOLD OUT<br />
<s>Today's Special: Salmon</s> SOLD OUT
</body>
</html>
Test to see if it works ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers support the <strike> tag.

Definition and usage of the tag

HTML5 The <strike> tag is not supported. Please use <del> The tag has been replaced.

In HTML 4.01 The <strike> element is deprecated.

The <strike> tag defines strikethrough text.

Standard Attributes

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

AttributeValueDescription
classclassnameSpecify the class name of the element
dirrtl
ltr
Specify the text direction of the content within the element
ididUnique id of the specified element
langlanguage_codeSpecify the language code of the content within the element
stylestyle_definitionSpecify the inline style of the element
titletextSpecify additional information for the element

For a full description, please visitStandard Attributes.

Event Attributes

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

AttributeValueDescription
onclickscriptExecute script when the mouse is clicked
ondblclickscriptExecute script when the mouse is double-clicked
onmousedownscriptExecute script when the mouse button is pressed
onmousemovescriptExecute script when the mouse pointer moves
onmouseoutscriptExecute script when the mouse pointer moves out of an element
onmouseoverscriptExecute script when the mouse pointer hovers over an element
onmouseupscriptExecute script when the mouse button is released
onkeydownscriptExecute script when the keyboard is pressed
onkeypressscriptExecute script when the keyboard is pressed and then released
onkeyupscriptExecute script when the keyboard is released

For a full description, please visitEvent Attributes.