Skip to content
Tutorials Center
My learning

Topics

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-through when the line is only decoration, such as a completed to-do item styled by a class.
strike before, s, del and CSS after

Technical summary

Status Obsolete (non-conforming)
Replacement <s>, <del> or CSS text-decoration: line-through
Still rendered by browsers Yes, with a line-through