HTML | <s> Tag

This tag is used to specify that the text content is no longer correct or accurate. This tag is similar but slightly different fron <del> tag. It is not used to replaced or delete text but <del> tag is used to replaced or delete the text.

Syntax:

<s> Contents... </s>

Note: This tag is depreciated from HTML 4.1 but it is redefined in HTML 5. It is used to define the text is no longer correct.

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>s tag</title>
        <style>
            body {
                text-align:center;
            }
            .gfg {
                font-size:40px;
                font-weight:bold;
                color:green;
            }
            .geeks {
                font-size:25px;
                font-weight:bold;
            }
            p {
                font-size:20px;
            }
        </style>
    </head>
    <body>
    <div class = "gfg">GeeksforGeeks</div>
    <div class = "geeks"><s> Tag</div>
    <p>GeeksforGeeks is a <s>computer science</s> portal for geeks</p>
    </body>
</html>                    

chevron_right


Output:

Supported Browsers:: The browser supported by <s> tag are listed below:

  • Apple Safari
  • Google Chrome
  • Firefox
  • Opera
  • Internet Explorer


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.