The cite attribute on a <del> tag sets a URL to a reference that explains the reason for the deletion.
The cite value has no visual effect but is readable by JavaScript, screen readers, search engines, and more.
A cite attribute on a <del> element. The citation contains a URL to a source that explains the spelling of this word. This URL is not visible.
Your order has been
canceled
cancelled.
<p>
Your order has been
<del cite="https://www.dictionary.com/e/canceled-vs-cancelled/">
canceled
</del>
cancelled.
</p>
The cite attribute specifies a link that explains why the content was deleted.
The URL is not visible, but it is readable by screen readers, search engines, JavaScript code, and others.
This attribute accepts absolute and relative URLs, i.e. from other domains and from the same domain.
<del cite="URL" >
Value | Description |
---|---|
URL | An absolute or relative URL to a document that explains why the text was deleted. |
Here is when cite support started for each browser:
Chrome
|
1.0 | Sep 2008 |
Firefox
|
1.0 | Sep 2002 |
IE/Edge
|
1.0 | Aug 1995 |
Opera
|
1.0 | Jan 2006 |
Safari
|
1.0 | Jan 2003 |