HTML: What's the Difference Between “s” vs “strike” vs “del” Tags
In HTML, if you want a line to strike-thru text, there are the following ways:
<s>xyz</s> <strike>xyz</strike> <del>xyz</del>
<strike> is not supported in HTML5.
The difference between “s” and “del” is that “del” has the meaning of deleted text, and “s” is just rendering.
Here's how they render in your browser:
- “s” →
this line is wrapped with s tag
- “del” →
this line is wrapped with del tag
Ask me question on patreon