The <strike> element drew a strikethrough (horizontal line) through its text. It was presentational only — no lasting semantic meaning.
Do not use it in new pages. Prefer <del> when content was removed, and <s> for text that is outdated or no longer relevant (for example, an old price).
Deprecated / Obsolete.
Deprecated in HTML 4 and obsolete in the HTML Living Standard. Avoid in every new project; keep reading only to recognize old markup.
Study-only examples.
Legacy snippets below exist so you can recognize <strike> and replace it. Prefer the <s> / <del> versions.
Syntax
HTML Syntax
syntax.html
<strike>text</strike>
Historical form only. Prefer one of these modern forms:
prefer.html
<!-- Outdated / irrelevant -->
<s>Today's Special: Salmon</s> SOLD OUT
<!-- Removed from the document -->
<del>Draft paragraph removed later</del>
Reference
Attributes
<strike> has no element-specific attributes. Only the global attributes apply (and the element itself is obsolete).
Attribute
Description
Status
None specific
No dedicated strikethrough attributes — the tag itself drew the line.
Mark the replacement with <ins> when you show both.
Keep order clear: deleted value first, then the new one.
Do not use <strike> for edits — <del> is the semantic choice.
Edge Cases & Pitfalls
Most strike problems come from treating a visual line as enough meaning.
obsolete
Still renders ≠ still allowed
Engines keep limited compatibility for old documents. That does not make <strike> valid in new HTML.
semantics
Pick s or del, not looks
Same line-through style can mean “irrelevant” (<s>) or “removed” (<del>). Choose by meaning.
a11y
Do not rely on the line alone
Some users miss decoration. Add nearby words (like “sold out” or “was”) so the change is clear without the strike.
css
CSS is not a substitute for meaning
text-decoration: line-through can style any element, but when the content is outdated or deleted, prefer <s> or <del>.
nesting
Keep markup simple
Avoid nesting <strike> inside <s> or <del>. One clear semantic tag is enough.
Compatibility
Browser Support
The <strike> element is legacy HTML kept for old pages. It is not a Node.js, Deno, or Bun API.
✓ Deprecated
<strike>
Still rendered in major browsers for backward compatibility, but obsolete for authors. Prefer s or del.
—Do not use in new work
Google ChromeLegacy
Still renders
Mozilla FirefoxLegacy
Still renders
Apple SafariLegacy
Still renders
Microsoft EdgeLegacy
Still renders
OperaLegacy
Still renders
Samsung InternetLegacy
Still renders
Internet ExplorerAll
Supported (legacy)
<strike>Obsolete (use s / del)
Bottom line: Recognize strike in old markup, then replace it with s or del. Never ship new pages that depend on it.
Remember
Key Takeaways
Status:<strike> is obsolete — avoid in new HTML.
Replace with:<s> for irrelevant text; <del> for removed content.
Look vs meaning: a line through text is not enough — pick the semantic tag.
CSS option:text-decoration: line-through styles the line when you already have the right element.
One line: recognize <strike> in old pages; use <s> or <del> in new ones.
UA style
Default CSS Settings
User agents typically render <strike> like this (conceptual UA stylesheet):
ua-strike.css
strike {
text-decoration: line-through;
}
Modern <s> and <del> use the same visual idea, with clearer meaning for authors and tools.
Frequently Asked Questions
The strike element drew a line through text (strikethrough). It was presentational only and is obsolete in modern HTML.
No. It was deprecated in HTML 4 / XHTML 1 and is obsolete in the HTML Living Standard. Do not use it in new pages.
Use del when the text was deleted from a document. In all other cases (outdated, irrelevant, wrong price), use s. Both look similar but carry meaning.
Yes, for backward compatibility with old pages. That does not make strike valid or recommended for new work.
Visually they often look alike. Semantically, s means content that is no longer accurate or relevant; del marks removed content. strike has no modern semantic role.
Yes. text-decoration: line-through (or text-decoration-line: line-through) draws the line. Prefer a semantic tag (s or del) when the meaning matters.