HTML <s> Tag

The <s> tag is used to define a text, which is not relevant any more. Browsers display the tag content as a strikethrough text.

For example, the tag can be used to show new price of the product, whilst still displaying its original price but with a line through the middle.

Don’t use the <s> tag to define a deleted text, use the <del> tag for that purpose.

Syntax

The <s> tag comes in pairs; the content is written between the opening (<s>) and the closing (</s>) tags.

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <p><s>I am studying in high school.</s></p>
    <p>I am studying in an university.</p>
  </body>
</html>

Result

Attributes

The <s> tag supports Global attributes and the Event Attributes.

Browser support