ExampleA text with a deleted part and a new, inserted part: | Browser Support |
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
None
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.
Attribute | Value | Description | DTD |
---|---|---|---|
cite | URL | Specifies a URL to a document which explains why the text was deleted | STF |
datetime | YYYY-MM-DDThh:mm:ssTZD | Specifies the date and time when the text was deleted | STF |
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.