HTML s Tag

HTML<s>Tag: The HTML<s> tag defines the text that is not correct, not accurate or not relevant. And this HTML s tag is similar but slightly different from the <del> tag. It is not used to replaced or deletes text but <del> tag is used to replaced or delete the text.

HTML<s>Tag

This HTML s tag supports both the global and the event attributes.

Syntax: <s>Text</s>



Browser compatibility

The HTML<s> tag is supported by different types of browsers.

  • Chrome
  • Firefox
  • Opera
  • Safari
  • Internet Explorer

Example:

<!DOCTYPE html>
<html>
<body>
<p><s>My favourite language is HTML</s></p>
<p>My favourite language is CSS.</p>
</body>
</html>

Output:

My favourite language is HTML
My favourite language is CSS.