<s> tag displays the enclosed text in strikethrough style i.e. with a line drawn through it (same as
<strike> but introduced by later browser versions).
The following table summarizes the usages context and the version history of this tag.
|Content:||inline and text|
|Start/End Tag:||Start tag: required, End tag: required|
|Version:||HTML 4, 4.01, 5|
<s> tag was deprecated in HTML 4, but it has been redefined in HTML5. However, use the
<del> tag instead if enclosed text represents deleted text, otherwise use the CSS
text-decoration property, with the
The basic syntax of the
<s> tag is given with:
The example below shows the
<s> tag in action.
ExampleTry this code »
<p>Here is some <i>strikethrough</i> text.</p>
<s> tag doesn't have any specific attribute.
Like all other HTML tags, the
<s> tag supports the global attributes in HTML5.
<s> tag also supports the event attributes in HTML5.
<s> tag is supported in all major modern browsers.