HTML5 <s> Tag

Example

A text that used to be correct has been replaced by a new, correct, text:

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

Try it yourself »

Definition and Usage

The <s> tag defines text that is no longer correct.

The <s> tag should not be used to define replaced or deleted text, use the <del> tag to define replaced or deleted text.


Differences Between HTML 4.01 and HTML5

The s element is deprecated in HTML 4.01, and used to define strikethrough text.

The s element is redefined in HTML5, and is used define text that is no longer correct.


Standard Attributes

The <s> tag also supports the Standard Attributes in HTML5.


Event Attributes

The <s> tag also supports the Event Attributes in HTML5.