<del>


HTML <del> Tag

Instance

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>php中文网(php.cn)</title> 
</head>
<body>

<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>

</body>
</html>

Run Example»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

##All major browsers support the <del> tag .


Tag definition and usage instructions

<del> Tag defines deleted text in the document.


Tips and Notes

Tips: You can also look at how the <ins> tag marks text that is inserted first.

Tip: <del> is used together with <ins> to describe updates and corrections in the document. Browsers usually add a strikethrough over deleted text and an underline under newly inserted text.


Differences between HTML 4.01 and HTML5

None.


Properties

PropertiesValueDescriptionciteSpecifies the URL of a document explaining why the text was removed. datetime Specifies the date and time when the text is deleted.
URL
YYYY-MM-DDThh:mm:ssTZD


##Global attributes

<del> tag supports global attributes of HTML.

Event attributes

<del> tag supports HTML event attributes.