⚠️ About <strike>
Tag
- Deprecated: The
<strike>
tag is obsolete in HTML5 and should not be used in modern web development. - Replacement: Use the
<s>
or<del>
tags for semantic strikethrough, or use CSS (text-decoration: line-through;
) for styling. - Purpose: Originally indicated text that is no longer correct or relevant, similar to a correction.
✅ Modern Alternatives
1. <s>
Tag
Used to indicate text that is no longer accurate or relevant.
<p>This price is <s>$100</s> now reduced to $80.</p>
2. <del>
Tag
Represents deleted or removed text, useful for indicating edits.
<p>Our old address was <del>123 Old St.</del> now moved to 456 New Ave.</p>
3. CSS Styling
<p>This is <span style="text-decoration: line-through;">struck through</span> text.</p>
⚠️ Why Avoid <strike>
?
- Not supported in HTML5 standards.
- No semantic meaning — purely presentational.
- Better semantic tags exist to represent struck-through content.
Summary
Do not use <strike>
in modern HTML. Instead, use:
<s>
for inaccurate or no-longer-relevant text.<del>
for deleted text or edits.- CSS styling for visual effects without semantic meaning.