HTML S Tag <s> is used when we want to render a strikethrough text on a browser.
Any text within the HTML S tag <s> will be rendered as strikethrough, a strikethrough text is the one in which there is a cut like line passing through the text.
S tag <s> is a closed tag and needs a closing HTML S tag </s>
Syntax of HTML S Tag
<s> Some text here </s>
Example of HTML S Tag
|HTML S Tag Code||Output|
<p> <s>I have a black dog. </s></p>
<p> Now I have a new fawn dog </p>
Now I have a new fawn dog
In the above S Tag output we can see that the text “I have a black dog” is being rendered as cut or strikethrough because we have wrapped it within the HTML 5 S tag.
HTML S Tag Supporting Browsers