HTML Strike Tag

HTML Strike Tag <strike> is used when we want to render a strikethrough text on a browser.

Any text within the HTML Strike tag <strike> will be rendered as strikethrough, a strikethrough text is the one in which there is a cut like line passing through the text.

HTML Strike tag is a closed tag and needs a closing HTML Strike tag </strike>

Note:

  1. Strike Tag is not supported in HTML 5, we have to use the HTML 5 del tag <del> instead.
  2. Also the strike tag is deprecated in HTML 4.0.1.

Syntax of HTML Strike Tag

<strike>
Some text here
</strike>

Example of HTML Strike Tag

HTML Strike Tag Code Output
<p> <strike>I have a black dog. </strike></p>
<p> Now I have a new fawn dog </p>
I have a black dog. Now I have a new fawn dog

In the above HTML Strike Tag output we can see that the text “I have a black dog” is being rendered as cut or strikethrough because we have wrapped it within the HTML Strike tag.


HTML Strike Tag Supported Global Attributes (in HTML 4.0.1)

HTML Strike Tag Attribute Name Value Description
Class classname Indicates a classname for the tag
Dir rtl, ltr Indicates the text direction: right to left (rtl) and left to right (ltr).
Id id Defines a unique id for the tag
Lang language_code Indicates the language code for the language contained within the tag
Style style_definition Indicates an inline style for the tag
Title text Defines additional information about the tag

See all HTML Global Attributes.


HTML Strike Tag supported Event Attributes (In HTML 4.0.1)

HTML Strike Tag Event Attributes Value Description
onclick Script/code Script/code to be executed on mouse click
ondbclick Script/code Script/code to be executed on mouse double click
onmousedown Script/code Script/code to be executed on mouse button is pressed
onmousemove Script/code Script/code to be executed on mouse pointer moves
onmouseout Script/code Script/code to be executed on mouse pointer moves out of the target element
onmouseover Script/code Script/code to be executed on mouse pointer moves over the target element
onmouseup Script/code Script/code to be executed on mouse button is released
onkeydown Script/code Script/code to be executed on key press
onkeypress Script/code Script/code to be executed on key pressed and then released
onkeyup Script/code Script/code to be executed on key is released

See all HTML Event Attributes.


HTML Strike Tag Supporting Browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer Yes
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes

Tagged , , , , , , , , , , , , , , , , . Bookmark the permalink.