Computerhelp4all logo Articles AboutTopicsQuizzesComputer Questions & AnswersComputer Terms & DefinitionsActivitiesContact

What Is The HTML <s> Tag?

What Is The HTML S Tag

Date First Published: 26th February 2023

Topic: Web Design & Development

Subtopic: Web Development

Article Type: Computer Terms & Definitions

Difficulty: Medium

Difficulty Level: 5/10

Learn more about what the HTML <s> tag is in this article.

In HTML, the <s> tag is used to text that was no longer accurate or correct in some way in the document. This text is indicated by a horizontal line striked through the text. By default, the web browser will strike a line through it, but this can be changed using CSS. This tag is supported by all major web browsers.

Example Of The <s> Tag

An example of the <s> tag with the output can be seen below:

<p>This is normal text</p> <s>This is text that is no longer accurate or correct</s>

Output:

This is normal text

This is text that is no longer accurate or correct

Difference Between The <del> and <s> Tag

Although both tags perform the same function, they semantically represent different things. The main difference between the <del> and <s> tag is that the <del> tag is used to define text that was in the document, but has been deleted and the <s> tag is used to define text that was no longer accurate or correct in some way in the document, but has not been deleted or removed. It is unlikely that using these tags has an effect on how content is indexed in search engines, but it is best to create content that is semantically correct and use both tags appropriately.


Feedback

  • Is there anything that you disagree with on this page?
  • Are there any spelling, grammatical, or punctuation errors on this page?
  • Are there any broken links or design errors on this page?

If so, it is important that you tell me as soon as possible on this page.


Comments