HTML Del <del>

Usage

The HTML del tag is used to define text in your document that has been deleted.

It can be used alongside the ins tag to markup text on your web page.

The benefit is that the deleted text still appears on your web page, vs just replacing it with new text, as it may help to keep it there as reference, but we want to be clear that it has changed.

There will be a strike through in the text, and on the back end a time and date can also be noted.

This is another popular tag still used quite a bit in 2020.

It is also available as a shortcut on the WordPress editor toolbar.

Code:


<!DOCTYPE html>
<html>
<head>
<!-- This is the stylesheet John created in 2020 -->
<link rel="stylesheet" href="/file/stylesheet.css">
</head>

<body>

<div id="openingparagraphs">

<p>Welcome to my webpage and paragraph 1.</p>

<p>I have so much to say I'm going to need a lot of paragraphs!</p>

The conference will be held in <del datetime="2020-06-11T14:48:32+00:00">July </del>  - Actually that has changed to October 2020.

</div>

</body>

</html>

Output:

Welcome to my webpage and paragraph 1.

I have so much to say I’m going to need a lot of paragraphs!

The conference will be held in July – Actually that has changed to October 2020.