HTML <s> tag

Definition and usage

<s> tag to define text that is no longer correct, accurate, or relevant. This text will be displayed in a style with a line through it.

<s> The tag should not be used to define deleted text in the document, please use <del> tag.

See also:

HTML tutorial:HTML text formatting

HTML DOM reference manual:S object

Example

Text marked as no longer correct:

<p><s>There are only 16 tickets left!</s></p>
<p>Sold out!</p>

Try it yourself

Global attributes

<s> The tag also supports Global attributes in HTML.

event attributes

<s> The tag also supports Event attributes in HTML.

Default CSS settings

Most browsers will use the following default values to display <s> Element:

s {
  text-decoration: line-through;
}

Try it yourself

Browser support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support