HTML STRIKE Tag || Strike Tag in HTML
×

HTML STRIKE <strike> Tag

0 561

HTML STRIKE <strike> tag was Define to strike a line through the text, contained within it.

The <strike> tag is not supported in HTML5. We can use <del> or <s> instead. You can also use CSS for same results.

Syntax:

<strike> content goes here </strike>

Program:

<!DOCTYPE html>
<html> 
<head>
  <title>HTML Strike Tag</title>
</head>
<body>
 <h2>Example of Strike Tag</h2>
 <p><strike>This is not a valid paragraph</strike></p>
 <p>This is a valid paragraph</p>
</body>  
</html>

Output:




Share:


Leave a Reply


Comments
    Waiting for your comments