The
<strike>tag was historically used to display text with a strikethrough (line through the text).
It is deprecated in HTML5.
The modern standard uses the<del>or<s>tags or CSStext-decoration: line-through;to achieve the same effect.
Syntax
<strike>Text to be struck through</strike>Attributes
| Attribute | Description |
|---|---|
| None | The <strike> tag does not have any specific attributes. |
Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Strike Tag Example</title>
</head>
<body>
<h2>Deprecated <strike> Tag Example</h2>
<p>Original Price: <strike>₹500</strike></p>
<p>Modern alternative: use <code><del></code> or CSS <code>text-decoration: line-through;</code>.</p>
</body>
</html>Output
Browser Output
The text inside the <strike> tag is displayed with a line through it (strikethrough).
Please use our TryIt Editor to see the effect.
Browser Support
Chrome | Firefox | Edge | Safari | Opera | IE9+ |
|---|---|---|---|---|---|
| ✅Yes | ✅Yes | ✅Yes | ✅Yes | ✅Yes | ✅Yes |
Notes
- The
<strike>tag is obsolete in HTML5. <del>or<s>should be used for semantic correctness (e.g.,<del>indicates deleted content).- CSS
text-decoration: line-through;provides more flexible styling for strikethrough effects.
Conclusion
The <strike> tag was used to create strikethrough text but is deprecated.
Modern HTML development should rely on semantic tags (<del> / <s>) or CSS for strikethrough styling.