Skip to main content

HTML Tags

HTML <s> Tag

Written by Updated

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

html

<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

html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>HTML <s> Tag Example</title>
</head>
<body>
  <h2>HTML <s> 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>

Browser Support

Chrome
Edge
Firefox
Safari
Opera
IE9+
YesYesYesYesYesYes

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.