HTML<strike> tag

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

Note: Do not use <strike> tag as it is obsolete now and not supported by HTML5, you can use <del>, <s> or CSS to achieve the same result.

Syntax

<strike>Your content here....</strike>  

Following are some specifications about the HTML <strike> tag

DisplayInline
Start tag/End tagBoth Start and End tag
UsageFormatting

Example

<!DOCTYPE html>  

<html>  

<head>  

    <title>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:

HTML strike tag

Attribute:

Tag-specific attributes:

The <strike> tag does not contain any specific attribute.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<strike>YesYesYesYesYes

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *