HTML strike Tag

HTML <strike> element was employed to display a line crossing through the text it encloses.

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

Example

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

Here are some details regarding the HTML <strike> element:

Display Inline
Start tag/End tag Both Start and End tag
Usage Formatting

Example

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:

Attribute:

Tag-specific attributes:

The <strike> element does not include any particular attribute.

Supporting Browsers

Element Chrome IE Firefox Opera Safari
<strike> Yes Yes Yes Yes Yes

Input Required

This code uses input(). Please provide values below: