HTML Tags

HTML <s> Tag

The <s> tag in HTML is used to define text that is no longer correct, accurate, or relevant but should not be deleted.
It visually renders text with a strikethrough line, similar to <del>, but <s> is meant for stylistic or factual changes rather than indicating document edits.

Syntax

<s>Text that is no longer accurate</s>

Attributes

AttributeDescription
NoneThe <s> tag does not have any specific attributes. However, global attributes like class, id, and style can be used.

Example

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>HTML &lt;s&gt; Tag Example</title>
</head>
<body>
  <h2>HTML &lt;s&gt; Tag Example</h2>
  <p>Original Price: <s>₹999</s> Now only ₹599!</p>
  <p>Old information: <s>Registration closes on June 1.</s> Extended till June 10!</p>
</body>
</html>

Output

Browser Output

There is a visible strikethrough line through the text, indicating that the information is outdated or no longer valid.
Use our TryIt Editor to see the output

Browser Support

Chrome
Chrome
Firefox
Firefox
Edge
Edge
Safari
Safari
Opera
Opera
IE
IE9+
✅Yes✅Yes✅Yes✅Yes✅Yes✅Yes

The <s> tag is fully supported in all major browsers.

Notes

  • Use <s> when you want to show stylistically outdated or incorrect information, such as an old price or an outdated reference.
  • For marking deleted or removed text in document revisions, use the <del> tag instead.

Conclusion

The <s> tag is a simple yet effective way to visually indicate that text content is obsolete or incorrect. It helps improve user clarity while keeping the content visible for reference.

Sign In Form

User your email and password to singn in

Don’t have an account, signup here : 

HTML5 & CSS3

Tools and Tutorials

Want a Website

Want a website for your business ?

Please fill out the details below, so we can reach out to you.

Registration Form

Signup to track your record and much more.

We have sent you an email with a registration link. Please click the link to verify your email address, or enter the 6-digit OTP provided in the email.

Didn't receive the OTP. Regenerate OTP Resend