HTML tag: “s” vs “strike” vs “del” and HTML5

Perm url with updates: http://xahlee.org/js/html_s_strike_del_html5.html

HTML tag: “s” vs “strike” vs “del” and HTML5

Xah Lee, 2011-06-13

In html, if you want a line to strike-thru text, there are the following ways:

<s>something</s>
<strike>something</strike>
<del>something</del>

The <strike> is not supported in html5. The difference between “s” and “del” is that “del” carries a semantic meaning of deleted text. Both are rendered the same. Here's how they renders in your browser:

  • this line is wrapped with s tag
  • this line is wrapped with del tag

Popular posts from this blog

11 Years of Writing About Emacs

does md5 creates more randomness?

Google Code shutting down, future of ErgoEmacs