S Tag in HTML5

In this article I am going to describe about the implementation and use of S Tag in HTML5.
  • 1240

S tag in HTML5

The <s> tag specifies text that is incorrect or inaccurate or no longer relevant .For example, it could be used to demonstrate a product that has had its price marked down, while still displaying the original price but with a line through the middle.

The <s> tag should not be used to define replaced or deleted text and also <s> tag is not appropriate when indicating document edits.for these purpose we use <del> tag in order to define replaced or deleted text.

Difference between HTML and HTML5

In HTML, <s> tag is used to define the strikethrough text, but in HTML5 <s> tag is used or defining that the text is no longer correct, accurate and relevant. And should not be used for defining replaced, deleted text, now in HTML5 <del> tag is used for defining the deleted text.

Browser Support

It is supported in all major browsers.


<s> ......text to be placed here .....</s>

Example of <s> tag in HTML5

<!DOCTYPE html>


<html lang="en" xmlns="http://www.w3.org/1999/xhtml">


    <meta charset="utf-8" />

    <title>s tag</title>



    <h3>Implementation of &lt;s&gt; Tag in HTML5</h3>

    <p><s>My bike is Splender.</s></p>

    <p>My new car is Esteem.</p>






© 2020 DotNetHeaven. All rights reserved.