HTML Tutorial
The <s>
tag in HTML represents text that is no longer relevant or has been replaced by new content. It is used to strikethrough text, creating a visual indication that the information is obsolete or outdated.
<s>
<s>
The <s>
tag has no attributes.
<s>
<p>The old price was <s>$10</s>.</p>
<p>This information is no longer valid: <s>The project is still ongoing.</s></p>
Exploring the <s>
tag:
<h1>My Website</h1>
<p>This is the content of my website.</p>
<p><s>This is some old content that is no longer relevant.</s></p>
<p>This is some new content.</p>
Output:
This is the content of my website.
This is some old content that is no longer relevant.
This is some new content.
By using the <s>
tag, you can strikethrough text to indicate that it is outdated or no longer relevant. This can be useful for providing users with a clear visual indication of the status of information on a web page.