HTML <del> tag

You are Here:

HTML <del> tag

The <del> tag specifies a range of text that has been deleted from a document.

Tips: You can use the <ins> element to specify a range of text that has been added to the document.

Browsers usually underline inserted text and strike a line through deleted text.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <p>I like <del>coffee</del> tea.</p> </body> </html>

Attributes

The following are the attributes of <del> tag. Also try Global attributes.

AttributeValueExplanation
citeURLSpecifies a URL to a page that explains the reason why the text was deleted.
datetimeYYYY-MM-DDThh:mm:ssTZDSpecifies the date and time of when the text was deleted.

More Examples

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <b>Bold Text</b> <br> <code>A Piece of Computer Code</code> <br> <del>Deleted Text</del> <br> <em>Emphasized Text</em> <br> <kbd>Keyboard Input</kbd> <br> <samp>Samp</samp> <br> <small>Small</small> <br> <strong>Important Text</strong> <br> <var>Variable</var> </body> </html>

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author