HTML <s> Tag
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 | |||||
12 | 1 | 1 | 15 | 4 |
Tablets / Mobile | |||||
18 | 4 | 14 | 3.2 | 1 | 4.4 |
Last updated by CSSPortal on: 30th September 2023