Horje

How to add HTML <del> cite Attribute

A deleted text, with a URL to a document that explains why the text was deleted:

Definition and Usage

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


Browser Support

Note: The cite attribute has no visual effect in ordinary web browsers, but can be used by screen readers.


Syntax

<del cite="URL">

Attribute Values

Value Description
URL Specifies the 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/page.htm")
  • A relative URL - Points to a page within a web site (like cite="page.htm")
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The del cite attribute</h1>

<p><del cite="del_demo_cite.htm">This text has been deleted</del></p>

</body>
</html>

Output should be:

How to add HTML <del> cite Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin