Inline
HTML5
The strikethrough element represents text that is no longer accurate or no longer relevant, typically rendered with a line through it.
<s>text that is no longer accurate</s>
The <s> element indicates text that is no longer valid but is kept for reference.
Critical distinction for proper semantic markup:
<!-- No longer accurate or relevant -->
<p><s>Ships in 5-7 days</s> Ships in 2-3 days</p>
<p><s>Out of stock</s> In stock</p>
Use when information is outdated but not deleted.
<!-- Removed during editing -->
<p>Price: <del>$99</del> $79 (edited)</p>
<p>Meeting: <del>Tuesday</del> Wednesday (correction)</p>
Use for editorial deletions and document changes.
Customize strikethrough appearance:
<p>This is <s>not</s> a good idea.</p>
<p>This is <em>not</em> a good idea.</p>
<p>Price: <s>$99</s> $79 (correction)</p>
<p>Price: <del>$99</del> <ins>$79</ins></p>
<!-- No longer accurate -->
<p><s>Ships tomorrow</s> Ships next week</p>
<!-- Removed during editing -->
<p><del datetime="2024-12-11">Old version</del></p>
<!-- Deprecated! Use <s> or <del> instead -->
<p><strike>Don't use this</strike></p>
Show both old and new information:
Some screen readers announce strikethrough text, but support varies. Always provide context.
<p><s>Out of stock</s> Available now!</p>
For complex updates:
<s aria-label="Previous status: sold out">Sold out</s>
<span aria-label="Current status: in stock">In stock</span>
Combine strikethrough with other indicators:
| Browser | Version | Notes |
|---|
| Chrome | 1+ | Full support |
| Firefox | 1+ | Full support |
| Safari | 1+ | Full support |
| Edge | 12+ | Full support |
| IE | 5.5+ | Full support |
The <s> element has excellent browser support across all versions.