👀 Live Preview
Original price struck through next to the discounted price:
Original Price: $99.99 Discounted Price: $79.99

The <strike> tag is an obsolete HTML element for strikethrough text. This guide covers its historical syntax, common use cases, modern replacements (s and del), and why you should not use it in new projects.
How strike wrapped text in older HTML.
Why HTML5 replaced strike.
s InsteadMark outdated or irrelevant content.
del for EditsMark removed document content.
Crossed-out prices in e-commerce.
Read legacy HTML confidently.
<strike> Tag?The <strike> tag was an HTML element used to denote text that has been struck through, indicating that it is no longer accurate or relevant. This visual representation was common for deprecated information, crossed-out prices, and outdated documentation.
The strike element is no longer valid HTML5. Use <s> for content that is no longer relevant, or <del> for text removed during document editing. Browsers still render strike for backward compatibility only.
Learn strike to understand legacy tutorials and old codebases, but always choose semantic HTML5 tags in new work.
<!-- Modern replacement -->
<s>Outdated price</s> New price: $79.99Wrap the text you want to strike through with opening and closing strike tags:
<strike>Your struck-through text here</strike>strike is an inline element — use inside paragraphs and other text content.<strike />) is not valid in HTML.class and style for custom appearance.strike with s or del based on meaning.| Topic | Code Snippet | Notes |
|---|---|---|
| Legacy strike | <strike>...</strike> | Obsolete |
| Modern replacement | <s>...</s> | Outdated content |
| Document edits | <del>...</del> | Removed text |
| Styled legacy | class="deprecated" | Global attr |
| Crossed-out price | <strike>$99</strike> | Use s today |
| Browser render | Still works | Backward compat |
<strike> vs <s> vs <del>| Element | HTML5 Status | Meaning | Use today? |
|---|---|---|---|
<strike> | Obsolete | Presentational strikethrough | No — legacy only |
<s> | Valid HTML5 | No longer relevant or accurate | Yes — outdated prices, facts |
<del> | Valid HTML5 | Removed from the document | Yes — edit history |
When you encounter strike in old code, migrate to the correct semantic tag:
<!-- Legacy (do not use) -->
<strike>$99.99</strike>
<!-- Modern: outdated price -->
<s>$99.99</s>
<!-- Modern: removed during editing -->
<del>Old paragraph text</del>The <strike> tag has no tag-specific attributes. Use global attributes like class and style for additional styling.
<strike class="deprecated" style="text-decoration: line-through; color: #999;">Deprecated Text</strike>class / id GlobalHook for CSS classes targeting deprecated or muted strikethrough text.
class="deprecated"style GlobalInline color or text-decoration adjustments.
style="color: #999;"title OptionalTooltip explaining why the text is struck through.
title="Discontinued"lang OptionalDeclare language when struck-through text differs from the page.
lang="en"Historical strike patterns for deprecated notices, styled text, and crossed-out prices. Prefer s or del in new code.
Original price struck through next to the discounted price:
Original Price: $99.99 Discounted Price: $79.99
Historically, <strike> marked deprecated information and crossed-out prices. Use <s> for the same visual effect in modern HTML.
Combine strike with class and style for a muted strikethrough appearance:
<p>
This is normal text, and
<strike class="deprecated" style="text-decoration: line-through; color: #999;">Deprecated Text</strike>
shows as struck-through.
</p>The primary historical use of strike was to mark text as deprecated or outdated in documentation:
<strike>This feature has been deprecated and will be removed in the next release.</strike>In e-commerce websites, strike was used to display original prices that have been discounted:
<p>
Original Price: <strike>$99.99</strike> Discounted Price: $79.99
</p>s or del so assistive technology understands why text is struck through.title to explain deprecated content.strike (or s) purely for visual decoration without semantic reason.Deprecated or crossed-out content is placed inside strike tags.
Default styles render a strikethrough line across the enclosed text.
Surrounding normal text provides the current, accurate information.
Users see what information is outdated — but use s or del in modern HTML.
The <strike> tag still renders in all major browsers for backward compatibility, but it is obsolete in HTML5 and should not be used in new documents.
Browsers display <strike> with line-through for old pages. Use <s> or <del> in new HTML.
Bottom line: Browsers still render <strike>, but use <s> or <del> in all new HTML.
Understanding the <strike> tag helps you read legacy HTML and communicate changes effectively. For new projects, replace strike with <s> or <del> to provide clear, semantic strikethrough meaning.
s for outdated prices and irrelevant content in new HTMLdel when marking text removed during document editingins to show replacements side by sidestrike code and migrate to semantic tagsstrike in new HTML5 documentss (irrelevant) with del (removed)<strike>Bookmark these before you work with strikethrough text.
Not HTML5.
StatusOutdated text.
ReplacementRemoved edits.
ReplacementCrossed-out.
Use caseGlobal attrs.
AttributesLegacy compat.
Compatibilitys or del instead.strike is obsolete. Browsers still render it for backward compatibility, but do not use it in new documents.strike is obsolete. s means no longer relevant. del means removed from the document during editing.class, id, and style.Practice legacy <strike> examples, then migrate to <s> and <del> in the Try It editor.
6 people found this page helpful