English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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>.
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 ‹/›
IEFirefoxOperaChromeSafari
All mainstream browsers support the <strike> 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.
In HTML 4.01 The <strike> tag supports the following standard attributes:
Attribute | Value | Description |
---|---|---|
class | classname | Specify the class name of the element |
dir | rtl ltr | Specify the text direction of the content within the element |
id | id | Unique id of the specified element |
lang | language_code | Specify the language code of the content within the element |
style | style_definition | Specify the inline style of the element |
title | text | Specify additional information for the element |
For a full description, please visitStandard Attributes.
In HTML 4.01 In, <s> and <strike> tags support the following event attributes:
Attribute | Value | Description |
---|---|---|
onclick | script | Execute script when the mouse is clicked |
ondblclick | script | Execute script when the mouse is double-clicked |
onmousedown | script | Execute script when the mouse button is pressed |
onmousemove | script | Execute script when the mouse pointer moves |
onmouseout | script | Execute script when the mouse pointer moves out of an element |
onmouseover | script | Execute script when the mouse pointer hovers over an element |
onmouseup | script | Execute script when the mouse button is released |
onkeydown | script | Execute script when the keyboard is pressed |
onkeypress | script | Execute script when the keyboard is pressed and then released |
onkeyup | script | Execute script when the keyboard is released |
For a full description, please visitEvent Attributes.