HTML <s> Tag

Description

The <s> HTML element is used for content that is no longer accurate or relevant. Browsers display such text as crossed out. The <s> element should not be used for deleted text; there is a <del> element for this purpose.

Properties

Permitted Parents
Any element that accepts phrasing content
Content
Inline and text
Start/End Tags
Start tag: required, End tag: required

Example

This tag will put a <s>line through</s> the middle of the text

Attributes

None

Global Attributes

The <s> tag also supports the Global Attributes in HTML5

Event Attributes

The <s> tag also supports the Event Attributes in HTML5

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
YesYesYes1YesYes
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYes4YesYesYes

Last updated by CSSPortal on: 6th December 2019