PUBLISHED ON: FEBRUARY 20, 2021
HTML S(strikethrough) Tag
In HTML, the <s> tag is used to represent strikethrough text or text with a line through it.
-
It is used to represent irrelevant text or no longer accurate text.
-
For document editing purpose use <del> tag instead of <s> tag.
-
The <s> tag is used for phrasing content.
HTML <s> Tag Syntax and Usage
The <s> tag requires the start(opening) tag and end(closing) tag.
Given below is the basic syntax:
<s>
...content here
</s>
HTML <s> Tag Basic Example
Below we have a basic example of <s> tag which shows its basic usage:
HTML <s> Tag Attributes
HTML <s> tag supports both global and event attributes though it does not have any specific attributes
Default CSS Settings for HTML <s> Tag
Given below are the default CSS settings used by most of the browsers for the HTML <s> tag:
s {
text-decoration: line-through;
}
Browser Support for HTML <s> Tag
Following browsers support this attribute:
-
Firefox 1+
-
Google Chrome 1+
-
Internet Explorer 2+
-
Safari 1+
-
Opera 4+