html tutorial - <s> Strikethrough Tag in HTML - html5 - html code - html form



s tag

Learn html - html tutorial - s tag - html examples - html programs

  • <s> tag used to show a text with strikethrough or a line through it.
  • <s> is used to represent things no longer relevant, correct or accurate.
  • This is deprecated now we can use <del> instead.
  • <s> tag supports Global Attributes and Event Attributes.
  • <s> tag belongs to Flow content and phrasing content.

Syntax for <s> tag in HTML:

<s>Content</s>

Differences between HTML 4.01 and HTML 5 for <s> tag:

HTML 4.01

  • <s> tag is deprecated in HTML 4.

HTML 5

  • In HTML 5 <s> tag is used to define the text no longer correct.

Sample Coding for <s> tag in HTML:

Tryit<!DOCTYPE html>
<html >
    <head>
        <title>Wikitechy s tag</title>
    </head>
    <body>
        <p>
            Welcome to<s>Wikitechy.</s>
        </p> 
    </body>
</html>

Code Explanation for <s> tag in HTML:

Strikethrough <s> Tag Code Explanation

  1. <s> tag used to show the strikethrough text.

Output for <s> tag in HTML:

Strikethrough <s> Tag Output

  1. The word “Wikitechy” is shown in strikethrough format.

Browser Support for <s> tag in HTML:

Yes Yes Yes Yes Yes

Related Searches to strikethrough tag in html