Table of Contents
INTRODUCTION
The HTML <s> element is used to show text with strikethrough or a line through it. It is used for text that is no longer relevant or no longer accurate. The <s> element is not used to show text edits, for that <del> and <ins> element are used.
The <s> element should not be used to merely strikethrough the text. For this you can use the CSS text-decoration-line property with value set to line-through to achieve same visual aspect.
The <strike> element, a former counterpart of the HTML <s> element, is now obsolete and should no longer be used on websites.
Syntax:<s> - TEXT - </s>
Example:
<p>
Ticket Availability: <s> The Tickets for World Cup is available. </s>
Sold Out!.
</p>
Output:
Ticket Availability: The Tickets for World Cup is available.
Sold Out!
Tag Omission
The HTML <s> element must have both start tag and end tag.
ATTRIBUTES
The <s> element only has global attributes.