HTML Tutorial

HTML Tag: <s>

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.

Usage of <s>

  • To indicate text that is no longer accurate or relevant.
  • To show that content has been replaced or superseded.
  • To create a sense of visual distinction between old and new information.

Attributes of <s>

The <s> tag has no attributes.

Examples with <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:

My Website

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.