<s>: The S Element
Last updated: 2026-10-13
<s>The S Element
Renders a strikethrough for text that is no longer accurate or relevant (e.g. a crossed-out price).
| Category | Formatting |
|---|---|
| Content Model | Phrasing content |
| Allowed Parents | Any element that accepts phrasing content |
| Content Tag | Yes — requires closing </s> tag |
| Status | Standard |
📝 Syntax
<s>strikethrough text</s>
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <s> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: To mark text deleted from a document, use <del> which is semantically clearer than <s>.
❓ FAQ
QWhat is the difference between s and del?
ASame styling (strikethrough by default), different semantics:
<s> means no longer correct or no longer relevant (a struck-out old price, outdated statements), while <del> means content deleted in a document edit. E-commerce strikethrough prices use <s>; revision records use <del>.QIs the s tag deprecated?
ANo. In HTML4,
<s> was deprecated together with <strike>, but HTML5 brought it back with the semantics of no longer accurate. <s> is fully valid today; the truly deprecated one is <strike>.QShould strikethrough prices use the s tag or CSS?
APrefer
<s>: it carries the semantics of no longer accurate, so screen readers and search engines understand this is the old price — far more informative than a pure CSS strikethrough (text-decoration: line-through). Use CSS only when no semantics are needed.