HTML Reference ยท Obsolete Elements
The <strike> element (obsolete)
The HTML <strike> element drew a line through text and is obsolete. Learn whether to replace it with <s>, <del> or CSS, with a before and after example.
The <strike> element drew a line through its text. It was purely visual: it said nothing about why the text was struck out.
Why it's obsolete
HTML 4 deprecated <strike> as presentational, and HTML5 made it obsolete. Instead of one visual element, modern HTML offers two meaningful ones, plus CSS for pure decoration.
Browsers still render <strike> with a line-through, so old pages look unchanged.
Modern replacement
Pick the replacement by meaning:
<s>for content that is no longer accurate or relevant, such as an old price.<del>for an edit: text removed from a document, often paired with<ins>.- CSS
text-decoration: line-throughwhen the line is only decoration, such as a completed to-do item styled by a class.
Technical summary
| Status | Obsolete (non-conforming) |
| Replacement | <s>, <del> or CSS text-decoration: line-through |
| Still rendered by browsers | Yes, with a line-through |
Related
<s>โ no longer accurate or relevant<del>โ removed text in an edit<ins>โ inserted text in an edit- Lesson: Deprecated and Obsolete Features
- Lesson: Formatting Text