This is an important message requiring you to make a choice if you're based in the EU.

HTML <s> Tag

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

For example, the tag can be used to show the new price of the product, while 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.


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


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



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

Browser support

Do you find this helpful?

Related articles