How to strikethrough text in Markdown?

To strikethrough text in Markdown, you have to write two tilde symbols together, then type the text you want to strikethrough; after that, add two tilde symbols.

~~text~~

Note: In HTML 4 and XHTML 1, code for strikethrough text is strike element. But the strike element is now deprecated. Now you have to use s element to strikethrough text.

Markdown HTML Output Rendered Output
This is a ~~strikethrough~~ text. This is a <s>strikethrough</s> text. This is a strikethrough text.