HTML Tag Reference - HTML tag <del>








This <del> element is used to highlight what is removed from a document by displaying it with a line drawn though.

Browser compatibility

<del> Yes Yes Yes Yes Yes

What's new in HTML5

None.

Attribute

cite
Value:URL
Provides a URL to a document to explain why the text was deleted
datetime
Value:YYYY-MM-DDThh:mm:ssTZD
Set the date and time of deleting

Global Attributes

The <del> tag supports the Global Attributes in HTML.





Event Attributes

The <del> tag supports the Event Attributes in HTML.

Default CSS Settings

del {
    text-decoration: line-through;
}

Example

A demo showing how to use <del> tag.

<html>
<body>
     <p>
          The following text has been <del>deleted</del>.
     </p>
</body>
</html>

Click to view the demo