HTML - <strike> Tag
Introduction to <strike> Tag
The HTML <strike> tag specifies strikethrough text. It is primarily used to mark outdated, deleted, or incorrect sentences or words. You can often see this tag used on older websites.
The <strike> tag is no longer recommended as it is not supported by HTML5. Instead, you can use the <del> or <s> tag to achieve the same result.
Syntax
Following is the syntax of <strike> tag −
<strike>...</strike>
Attributes
The HTML <strike> tag supports Global and Event attributes.
Example: Striking Text
Let's consider the following example, where we use the <strike> tag to strikethrough some text. This HTML code creates a webpage with a paragraph with a paragraph, using the strike tag to show "not" and "Anymore" as strikethrough text.
<!DOCTYPE html>
<html>
<head>
<title>HTML strike Tag</title>
</head>
<body>
<p>
React is <strike>not</strike> Trending <strike>Anymore</strike>
<p>
</body>
</html>
Example: Comparing <del> & <s> Tag
In the following example we will use the <del> tag as an alternative to the <strike> tag.
<!DOCTYPE html>
<html>
<head>
<title>HTML strike Tag</title>
<style>
ins,
span{
background-color: yellow;
}
</style>
</head>
<body>
<h3>Using HTML strike Tag</h3>
<p>
React is <strike>not</strike> Trending <strike>Anymore</strike>
<span>for next 5 Years</span>
<p>
<h3>Using HTML del & s Tag</h3>
<p>
React is <del>not</del> Trending <s>Anymore</s>
<ins>for next 5 Years</ins>
<p>
</body>
</html>
Supported Browsers
| Tag | ![]() |
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|---|---|
| strike | Yes 1.0 | Yes 12.0 | Yes 1.0 | Yes 4.0 | Yes 15.0 |
html_deprecated_tags.htm
Advertisements




