HTML del Tag Tutorial

In this section, we will learn what HTML <del> element is and how it works.

What is <del> Tag in HTML?

HTML <del> element stands for delete and is used when we want to delete a content from a document by putting a strike-through line on the deleted text content. Basically at some point, the content of the <del> element was correct but for some reasons like after a period, that content is no-longer valid!

Note that users are still able to see the content on the page, but because there’s a line on top of the content, it gives the impression that this content is deleted and should not be considered as a valid content.

Note: usually after HTML <del> comes the <ins> element and it represents a replaced value.

HTML <del> Tag Syntax:

<del> text content </del>

HTML <del> Tag Values

The value of HTML <del> element is any text content that we want it to be considered out of date and deleted.

Example: using <del> tag in HTML

See the Pen using <del> tag in HTML by Omid Dehghan (@odchan1) on CodePen.

Facebook
Twitter
Pinterest
LinkedIn

Top Technologies