The HTML <s> tag
Definition and Usage
<s>
tag to define text that is no longer correct, accurate, or relevant. This text will be displayed in a style with a line through it.
<s>
The tag should not be used to define text that has been deleted in the document; use <del> tag.
See also:
HTML Tutorial:HTML Text Formatting
HTML DOM Reference Manual:S Object
Example
Text marked as no longer correct:
<p><s>Tickets remaining 16!</s></p> <p>Sold Out!</p>
Global Attributes
<s>
The tag also supports Global Attributes in HTML.
event attributes
<s>
The tag also supports Event Attributes in HTML.
Default CSS Settings
Most browsers will display the following default values <s>
Element:
s { text-decoration: line-through; }
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |