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>
Attribute | Description |
cite | This attribute can be used to specify the URI to the document that explains the reason for deletion. |
datetime | The 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.
Related tags
- <s> tag.
Subscribe
Join the newsletter to get the latest updates.