HTML5 <del> Tag

Example

A text with a deleted part and a new inserted part:

<p>My favorite color is <del>blue</del> <ins>green</ins></p>
Code it Online »

Definition and Usage

The <del> tag defines text that was deleted from a document.

Tips and Notes

Hint: Use it together with the <ins> tag to describe updates and modifications in a document.

Attributes

Attribute Value Description
cite URL Specifies a URL to a document which explains why the text was deleted
datetime YYYY-MM-DDThh:mm:ssTZD Specifies the date and time when the text was deleted

Standard Attributes

The <del> tag also supports the Standard Attributes in HTML5.

Event Attributes

The <del> tag also supports the Event Attributes in HTML5.


Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!