Description

The HTML element <strike> is used to define a text with a strikethrough line across the text.

This element is deprecated in HTML 4.01 and obsolete in HTML 5. So, avoid using this element.

Instead, CSS property text-decoration can be used to apply strikethrough style on a text.

The below table summarizes its usage.

Usage Details
Placement It is displayed as an Inline element.
Contents It can contain Inline elements and text.
Tags Both the opening and closing tags are required.
Versions HTML 3.2, 4, 4.01

Syntax

Here is the basic syntax of the <strike> element.

<strike>...</strike>

Examples

Run this on IDE

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Example - HTML Element strike</title>
</head>
<body>
    <h2>HTML Element strike</h2>
    <p>This paragraph contains a <strike>strikethrough</strike> text.</p>
    <p>NOTE: Avoid using this element in HTML5 documents.</p>

    <h2>Alternative Approach using CSS</h2>
    <p>This paragraph contains a <span style="text-decoration: line-through;">strikethrough</span> text.</p>
</body>
</html>

Attributes

The following table shows the list of supported and unsupported attributes for the <strike> element.

Attribute Type Details
Element-Specific Attributes The tag <strike> doesn't have any element-specific attributes.
Global Attributes Like all other HTML tags, the tag <strike> supports the HTML Global Attributes.
Event Attributes The tag <strike> also supports the HTML Event Attributes.

Browser Compatibility

The tag <strike> is supported in all modern browsers.

  • Google Chrome 1+
  • Internet Explorer or Edge 2+
  • Firefox 1+
  • Apple Safari 1+
  • Opera 4+

Related Links