HTML S Tag

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
[sourcecode language=”html”]
<p> <s>I have a black dog. </s></p>
<p> Now I have a new fawn dog </p>
[/sourcecode]
I have a black dog.

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 Supports all HTML Global Attributes and HTML Event Attributes.


HTML S Tag Supporting Browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer Yes
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes

Leave a Reply

Your email address will not be published. Required fields are marked *