tadam logo

HTML <del> cite Attribute

Example

Use of the cite attribute in the del element:
My favorite color is <del cite="why_deleted.html">blue</del> <ins>red</ins>!
The output of the code above will be:

Definition and Usage

The cite attribute specifies a URL to a document which explains why the text was deleted.

Browser Support

The cite attribute is not supported by any of the major browsers. But because it has other potential uses (for example, in search engine indexing, retrieval of its content via DOM Scripting, and more), and since improved native support for the attribute is anticipated in future browser versions, you should use the cite attribute when you use del.

Syntax

<del cite="value">

Attribute Values

ValueDescription
URLThe address to the document that explains why the text was deleted.

Possible values:

  • An absolute URL - Points to another web site (like cite="http://www.example.com")
  • A relative URL - Points to a page within a web site (like cite="example.html")
  • An anchor URL - Points to a named anchor (like cite="#bottom")
Was this information helpful?
   

Comments