HTML <del>Tag
Examples
A piece of text with a deleted portion and a newly inserted portion:
<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>
Try it Yourself »
Browser Support
![]()
All major browsers support the <del> tag.
Tag Definition and Usage
The <del> tag defines text that has been deleted from a document.
Tips and Notes
Tip:You can also see<ins>How the tag marks inserted text.
Tip:The <del> and <ins> tags are used together to describe updates and corrections in a document. Browsers usually draw a strikethrough line on deleted text and an underline beneath newly inserted text.
Differences between HTML 4.01 and HTML5
None.
Attributes
| Attribute | Value | Description |
|---|---|---|
| cite | URL | Specifies the URL of a document that explains why the text was deleted. |
| datetime | YYYY-MM-DDThh:mm:ssTZD | Specifies the date and time when the text was deleted. |
Global Attributes
The <del> tag supportsHTML Global Attributes。
Event Attributes
The <del> tag supportsHTML Event Attributes。
Other Extensions