Advertisement
❮ Previous: <dd> Next: <details> ❯

<del>

HTML <del> (Deleted Text) Tag

Example

<p>This text has been <del>deleted</del>.</p>

Try this code ❯

Meaning

The <del> element is used to indicate that text has been deleted from a document.

A browser might render deleted text as strikethrough text.

Version: HTML 4, 4.01, 5


Standard Syntax

<del>Deleted text</del>


Advertisement

Attributes

Attribute Value Description
cite URL A source document explain why the information was deleted.
datetime YYYY-MM-DDThh:mm:ssTZD The date and time the deletion was made.

Global Attributes

<del> element also supports the Global Attributes in HTML.


Event Attributes

<del> element also supports the Event Attributes in HTML.


By Default CSS Value(s)

Most of the browsers will display the <del> element with the following by default value(s)

del {
  text-decoration: line-through;
}
❮ Previous: <dd> Next: <details> ❯
Advertisement