<s>


HTML <s> Tag

Instance

<!DOCTYPE html>
<html>
<body>

<p><s>My car is blue.</s></p>
<p>My new car is silver.</p>

</body>
</html>

Run Example»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

All major browsers support< s> tag.


Tag definition and usage instructions

<s> Tags identify text that is incorrect, inaccurate or useless.

<s> tags should not be used to define replacement or deleted text. If you want to define replacement or deleted text, use the <del> tag.


Differences between HTML 4.01 and HTML5

In HTML 4.01, the <s> element has been deprecated and is used to strikethrough text.

HTML5 redefined the <s> element, which is now used to define incorrect text.


Global attributes

<s> tag supports HTML global attributes.


Event attributes

<s> tag supports HTML event attributes.