HTML del tag
HTML

HTML del tag

Mishel Shaji
Mishel Shaji

The HTML <del> tag is used to mark text that has been deleted from the document. The browser adds a line through the text specified within the del tag.

Syntax

<del>This text is deleted.<del>

AttributeDescription
citeThis attribute can be used to specify the URI to the document that explains the reason for deletion.
datetimeThe date and time of deletion can be specified with this attribute

Example

<!DOCTYPE html>
<html>
<head>
    <title>Delete Tag</title>
</head>
<body>
    <p>This is an example of <del>del</del> tag.</p>
    <p>This is an example of <del cite="reason.html" datetime="2018-10-12">deleted text</del>.</p>
</body>
</html>

Output

This is an example of del tag.
This is an example of deleted text.