HTML <del> tag

Updated: 10/11/2017 by Computer Hope

HTML del tagWhen writing HTML, the <del> tag is and inline element used to indicate that a block of text has been deleted from a web page. It is usually visually illustrated using strike-through text. The following sections contain information about this tag, including examples of how it is used as well as related attributes and browser compatibility.


<p>My favorite food is <del>spaghetti</del> <ins>pizza</ins>.</p>

Example Result

My favorite food is spaghetti pizza.


Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the <del> tag, as well as a description of each.

Attribute Description
cite Designates a URL to a document explaining why the text has been deleted
datetime Designates the date and time the text was deleted


Internet Explorer Firefox Safari Opera Chrome
All versions All versions All version All versions All versions

Block of text, Browser, Compatibility, CSS, HTML ins tag, URL, Web design terms