The <del> tag specifies a part of the text that was deleted from the document. Browsers display this text as a strikethrough. To indicate a new version of the text, we use the <ins> tag, the content of which is displayed in the browser as underlined.
For displaying the text as underlined, you can use a CSS property text-decoration with the "line-through" value.
SyntaxThe <del> tag comes in pairs, the content is written between the opening (<del>) and the closing (</del>) tags.
<html> <head> <title>Title of the document</title> </head> <body> <p>My favorite color is <del style="color:#8ebf42;">green</del> <ins style="color:#1c87c9;"> blue</ins>!</p> </body> </html>
|cite||URL||Specifies the URL of the document, which explains why the text was edited or deleted.|
|datetime||YYYY-MM-DDThh:mm:ssTZD||Defines date and time of the deleted text.|