HTML del tag and element

1. HTML del (deleted text) element represents a run of text, which has been deleted from a document, while a different version of the document had that text.

2. Often HTML del element is used along with del element.

3. While displaying a deleted text, most of the browsers put a line through on the text.




HTML del element can be used as an inline element as well as a block level element.

Whether both start and end tags are required


Can contain

HTML del element can contain inline elements and block level elements. If this element is used as an inline element, not block level element should be used within the del element.

The following example is an inappropriate use of ins element.

<p><del><div>Some text..... </del></div></p> 

Can reside within

HTML del element can reside within inline as well as block level elements.


Attributes specific to this element

Attribute Value Description
cite An url. Value of the attribute points to a source document or message.
datetime Date and time. Value of the attribute specifies the date time, when the text had been deleted.


id, class.

language information and text direction

lang, dir.






onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

Supported doctypes

HTML 4.01 Strict, HTML 4.01 Transitional, and HTML 4.01 Frameset.

Example of using HTML del element

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>html del tag example</title>
<p><del datetime="2011-01-05T08:15:30+05:30" cite="https://www.w3resource.com/html/HTML-tutorials.php">We are not using HTML 4.01 Transitional DOCTYPE.</del></p>


html del element

View this example in a separate browser window

HTML del tag example.

Pictorial presentation

html del tag

Previous: HTML ins tag and element
Next: HTML-lists

Test your Programming skills with w3resource's quiz.

Follow us on Facebook and Twitter for latest update.