HTML s tag

HTML <s> tag

Use of <s> tag

The <s> tag is used to define characters mostly texts that is no longer accurate or related. Normally, The texts within the <s> element will be rendered with strike-through or line-through texts.
In HTML4.01, <s> tag was simply used to define strike-through or line-through texts. But it was changed in HTML5 such that it is used to define texts that is no longer accurate or related.
Type: Inline Element

Example of <s> tag

<s> Strike through texts </s>

Supported Browsers

Tag Chrome browser Internet explorer browser Firefox browser Safari browser Opera browser
<s> Yes Yes Yes Yes Yes

Full Code Example

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p> This is <s> strike through texts. </s> </p>
</body>
</html>

Output

This is strike through texts.

Default CSS property of <s> tag

s {
      text-decoration: line-through;
}