HTML - <strike> Tag



The HTML <strike> tag specifies strikethrough text.

The <strike> tag is no longer recommended as it is not supported by HTML5. Instead of using this tag, we can use the <del> tag to achieve the same result.

Example

Let's look at the following example, where we are going to use the strike tag

<!DOCTYPE html>
<html>
<head>
   <title>HTML strike Tag</title>
</head>
<body>
   The HTML strike tag renders a <strike>strike</strike> through the middle of the text.
</body>
</html>

When we run the above code, it will generate an output consisting of the text with a strike in it displayed on the webpage

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

html_deprecated_tags.htm
Advertisements