Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <strike> tags


May 05, 2021 HTML Reference Manual


Table of contents


HTML -lt;strike-gt; Tags - HTML5 does not support

The label is used to add a strike line to the text, as shown in the following example, but is not supported in HTML5.

Add a delete line to the text:

<p>Version 2.0 is <strike>not yet available!</strike> now available!</p>

Try it out . . .

Browser support

HTML <strike> tags HTML <strike> tags HTML <strike> tags HTML <strike> tags HTML <strike> tags

All major browsers support the hashtag.


Label definition and instructions for use

HTML5 does not support labeling. Please replace it with a label.

In HTML 4.01, the element is discarded.

Define the text with a strike.


The standard property

In HTML 4.01, the label supports the following standard properties:

Attributes value describe
class classname The name of the specified element
dir rtl
ltr
Specify the text direction of the content in the elements
id id Unique ID of the specified element
lang language_code Specify language code in the contents of the elements
style style_definition Introduction to the elements
title text Additional information of the specified elements

For a complete description, visit Standard Properties.


The event property

In HTML 4.01, the labels support the following event properties:

Attributes value describe
onclick script Perform a script when the mouse is clicked
ondblclick script When the mouse is double-bit, execute the script
onmousedown script When the mouse button is pressed, execute the script
onmousemove script Execute a script when the mouse pointer moves
onmouseout script Execute a script when the mouse pointer is moved out of an element
onmouseover script Execute the script when the mouse pointer hovers over a certain element
onmouseup script Perform a script when the mouse button is released
onkeydown script Perform a script when the keyboard is pressed
onkeypress script When the keyboard is pressed, execute the script when it is released.
onkeyup script When the keyboard is released, the script is executed.

For a complete description, visit Event Properties.


Expand your knowledge

This section is an extension of the word strike, and interested friends can take a look at it: in addition to being able to use it as a label in HTML, it can also be used as a JavaScript strike() method.