HTML: What's the Difference Between “s” vs “strike” vs “del” Tags

By Xah Lee. Date:

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:

Liket it? Put $5 at patreon.

Or, Buy JavaScript in Depth

Ask me question on patreon