Published Nov 17, 2022
Contribute to Docs

The <s> element represents strike-through text that is no longer needed, accurate, or correct.


  <!-- Incorrect, inaccurate, and unneccesary text here -->

The <s> element should only contain text content or other elements meant for text content.

Note: The <s> element is semantically different from the <del> element because the former is just an edit while the latter conveys an actual update in a document.


The following is an example of the <s> element:

<head> </head>
<s>worng txet</s>

The rendered output would look like this:

Rendered <s> element example

All contributors

Looking to contribute?

Learn HTML on Codecademy