The HTML <s> element renders text with a strikethrough, or a line through it. Use the <s> element to represent things that are no longer relevant or no longer accurate. However, <s> is not appropriate when indicating document edits; for that, use the <del> and <ins> elements, as appropriate.
| Content categories | Phrasing content or flow content. |
|---|---|
| Permitted content | Phrasing content. |
| Tag omission | None, both the starting and ending tag are mandatory. |
| Permitted parents | Any element that accepts phrasing content. |
| Permitted ARIA roles | Any |
| DOM interface | HTMLElement |
Attributes
This element only includes the global attributes.
Implementation note: Up to Gecko 1.9.2 inclusive, Firefox implements the
HTMLSpanElement interface for this element.Example
<s>Today's Special: Salmon</s> SOLD OUT<br> <span style="text-decoration:line-through;">Today's Special: Salmon</span> SOLD OUT
Result
Today's Special: Salmon SOLD OUT
Today's Special: Salmon SOLD OUT
Specifications
| Specification | Status | Comment |
|---|---|---|
| HTML Living Standard The definition of 's element' in that specification. |
Living Standard | |
| HTML5 The definition of 's element' in that specification. |
Recommendation |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
| Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
| Basic support | Yes | Yes | 11 | Yes | Yes | Yes |
| Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
|---|---|---|---|---|---|---|---|
| Basic support | Yes | Yes | Yes | 4 | Yes | Yes | Yes |
1. Before Firefox 4, this element implemented the HTMLSpanElement interface instead of the standard HTMLElement interface.
See Also
- The
<strike>element, alter ego of the<s>element is obsolete and should not be used on Web sites any more. - The
<del>element is to be used instead if the data has been deleted. - The CSS
text-decoration-line-through property is to be used to achieve the former visual aspect of the<s>element.
Document Tags and Contributors
Tags:
Contributors to this page:
teoli,
sideshowbarker,
garwoodpr,
chharvey,
jmmarco,
Sebastianz,
Aslam.Sayyed,
kscarfone,
justleroy,
Sheppy,
medicdude,
ethertank,
vladikoff,
fscholz,
Ptak82,
WhiPd3,
Jscher2000,
PablO,
alecananian
Last updated by:
teoli,

