<s> element represents strike-through text that is no longer needed, accurate, or correct.
<s> <!-- Incorrect, inaccurate, and unneccesary text here --> </s>
<s> element should only contain text content or other elements meant for text content.
<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
<html><head> </head><body><p><s>worng txet</s></p></body></html>
The rendered output would look like this:
Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.
Learn HTML on Codecademy
Front-End EngineerFront-end engineers work closely with designers to make websites beautiful, functional, and fast.
Includes 34 Courses
With Professional Certification