HTML cite Attribute

The cite attribute of the <del> element sets a URL to the HTML document and states why a specific text was deleted.

 Following is the syntax −

<del cite="url">

Here, url is the link that displays the address of the document wherein it is specified why the text was deleted. 

Let us now see an example to implement the cite attribute of the <del> element −


 Live Demo

<!DOCTYPE html>
<h2>Subjects to Learn</h2>
   <dd>A scripting language.</dd>
   <dd>It is a programming language.</dd>
   <dd>A JavaScript library.</dd>
   <dd>Object-oriented programming language.</dd>
<lp><del cite="exams_cancelled.htm">Internal Exams from 3rd May</del></p>


In the above example, we have deleted a text using the <del> element −

<del cite="exams_cancelled.htm">
   Internal Exams from 3rd May

Above, we have set the reason of deletion using the cite attribute −


Updated on: 30-Jul-2019


Kickstart Your Career

Get certified by completing the course

Get Started