<s>
Published Nov 17, 2022Updated May 15, 2024
Contribute to Docs
The <s>
element represents strike-through text that is no longer needed, accurate, or correct.
Syntax
<s>
<!-- Incorrect, inaccurate, and unnecessary text here -->
</s>
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.
Example
The following is an example of the <s>
element:
<html><head> </head><body><p><s>worng txet</s></p></body></html>
The rendered output would look like this:
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn HTML on Codecademy
- Career path
Front-End Engineer
Front-end engineers work closely with designers to make websites beautiful, functional, and fast.Includes 34 CoursesWith Professional CertificationBeginner Friendly115 hours - Free course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner Friendly7 hours