HTML <del> Tag

Description:

The <del> tag is used for markup of deleted text.

Markup of deleted text can be useful in determining differences between multiple versions of the same document. Browsers will normally strike a line through deleted text and underline inserted text.

 

Specific Attributes:

Attribute Definition
cite Specifies a URL to a document which explains why the text was deleted.
datename Specifies the date and time when the text was deleted.

Other Attributes:

Attribute Definition
dir

Specifies the text direction for the content in an element.
Possible Values:

  • rtl  (Right to Left)
  • ltr  (Left to Right)
class Specifies a classname for an element.
id Specifies a unique id for an element.
lang Specifies a language code for the content in an element.
title Specifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
style Specifies an inline style for an element.

Example Code:

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

Result

My favorite color is blue red!