HTML <s> Tag
The <s> tag is used to define a text, which isn’t relevant any more. Tag attributes and using examples.
The <s> tag is used to define text that is no longer relevant or accurate. Browsers display the tag content as a strikethrough.
For example, it can be used to show the original price of a product alongside the new price, with the old price displayed with a line through the middle.
Use the <s> tag for text that is no longer relevant or accurate. For deleted or removed text, use the <del> tag instead.
Syntax
The <s> tag comes in pairs. The content is written between the opening (<s>) and closing (</s>) tags.
Example of the HTML <s> tag:
HTML <s> Tag
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<p><s>I am studying in high school.</s></p>
<p>I am studying in a university.</p>
</body>
</html>Result

Attributes
The <s> tag supports Global attributes and the Event Attributes.
How to style an HTML <s> Tag
s {
color: red;
text-decoration: line-through;
}Practice
What is the function of the <s> tag in HTML?