HTML <s> Tag

Definition and Usage

<s> The tag specifies 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; 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>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 display the following default values <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