Constantin Druccdruc

Hey, I'm Constantin Druc!

I'm a web developer sharing everything I know about building web applications.

I'm making a course on Laravel Sanctum:

Strikethrough with <del> and <s> - there is a difference

To strikethrough text using markdown, wrap it between double tilde symbol ~~strikethrough text~~.

It translates to this HTML code:

<del>strikethrough text</del>

But it turns out you can also use the <s> tag:

<s>strikethrough text</s>

So... what's the difference?

  • <del> indicates content that has been removed or deleted.
  • <s> indicates content that is no longer accurate or relevant - like, for example, when I moved from using a decade-old macbook to a stupidly fast M2.