HTML <s> Tag (original) (raw)

Last Updated : 11 Jul, 2025

This tag is used to specify that the text content is no longer correct or accurate. This tag is similar but slightly different from the tag. The <s> tag should not be used to define deleted text, rather use the tag for that.

**Syntax

Contents...

Default CSS for tag is as:

s {
  text-decoration: line-through;
}

**Example 1: In this example, we will see the use of tag by using HTML.

HTML `

<h1>
    GeeksforGeeks
</h1>
<h2>&lt;s&gt;
        Tag
</h2>
<p>GeeksforGeeks is a
    <!-- html <s> tag is used here -->
    <s>computer science</s>
    portal for geeks
</p>

`

**Output:

**Supported Browsers: