Tutorialspoint.dev

HTML | <strike> Tag

It defines a strike or line through Text. This tag is depreciated from HTML 5. This tag create a cut line in the text. Now <del> tag is used instead of this tag.

Syntax:

<strike> Contents... </strike>

Below example illustrates the <strike> tag in HTML:

Example:

<!DOCTYPE html>
<html>
    <head>
        <title>strike tag</title>
        <style>
            h1, h2 {
                color:green;
            }
            body {
                text-align:center;
            }
        </style>
    </head>
    <body>
        <h1>GeeksForGeeks</h1>
        <h2><<B>strike Tag</b>></h2>
        <p><strike>GEEKSFORGEEKS</strike></p>
        <strike>GFG</strike>
    </body>
</html>                    

Output:

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

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


This article is attributed to GeeksforGeeks.org

leave a comment

code

0 Comments

load comments

Subscribe to Our Newsletter