Tag <del> HTML Reference


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

<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

1. Definition and Usage

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

Tip: Also look at the <ins> tag to markup inserted text.

Browsers will normally strike a line through deleted text and underline inserted text.

2. Differences Between HTML 4.01 and HTML5


3. Optional Attributes

DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

citeURLSpecifies a URL to a document which explains why the text was deletedSTF
datetimeYYYY-MM-DDThh:mm:ssTZDSpecifies the date and time when the text was deletedSTF

4. Standard Attributes

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

5. Event Attributes

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

Relative articles