The <del> (“delete”) tag converts the enclosed text into the strikethrough version of that text.

The following HTML:

<del>Red</del> Green means go.

results in:

Red Green means go.

You may still see reference to the (now deprecated) <strike> tag; the following HTML:

The strike tag has been <strike>deleted</strike> deprecated.

results in:

The strike tag has been deleted deprecated.

The <strike> tag has been replaced by the <s> tag. The <del> tag and the <s> tag have the same default display format but differ semantically.


References:

  1. <strike>- HTML: HyperText Markup Language | MDN. [online]. Available at: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strike (Date Accessed: 15 August 2023)

By MisterFoxOnline

Mister Fox AKA @MisterFoxOnline is an ICT, IT and CAT Teacher who has just finished training as a Young Engineers instructor. He has a passion for technology and loves to find solutions to problems using the skills he has learned in the course of his IT career.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.