HTML <s> Tag

If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!

Description

The <s> HTML tag, also known as the "strikethrough" tag, is used to indicate text that has been deleted or crossed out within a document. When applied to a portion of text, it renders that text with a horizontal line through its center, typically to signify that the content has been removed or is no longer relevant. While it visually strikes through the text, it does not necessarily imply that the text should be completely ignored; its meaning may vary depending on the context in which it is used. The <s> tag is often paired with the <del> tag to provide additional semantic information about the deleted content.

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

The following table will show you the current browser support for the HTML <s> tag.

Desktop
Edge Chrome Firefox Opera Safari
1211154
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
184143.214.4

Last updated by CSSPortal on: 30th September 2023