The <del> tag in HTML stands for delete and is used to mark a portion of text which has been deleted from the document. The deleted text is rendered as strikethrough text by the web browsers although this property can be changed using CSS text-decoration property. The <del> tag requires a starting and ending tag.
<del> Contents... </del>
Attributes: The <del> tag contains two attributes which are listed below:
- cite: It is used to specify the URL of the document or message which denotes the reason of deleting the text.
- datetime: It is used to specify the date and time of the deleted text.
Below programs illustrate the <del> element in HTML:
Example 2: This example use the <del> tag with the datetime attribute.
Supported Browsers: The browser supported by <del> tag are listed below:
- Google Chrome
- Internet Explorer
- What purpose does a <script> tag serve inside of a <noscript> tag?
- Difference between <article> tag and <section> tag
- Why <big> tag is not in HTML5 while <small> tag exists ?
- HTML | <html> Tag
- HTML | <section> Tag
- HTML | Style Tag
- HTML | <marquee> tag
- Div Tag | HTML
- HTML | <noframes> Tag
- span Tag | HTML
- HTML | <picture> Tag
- HTML | <font> Tag
- HTML 5 | <header> Tag
- HTML | <hgroup> Tag
- HTML | <q> Tag
- HTML | Object tag
- HTML | Phrase Tag
- HTML 5 | <summary> Tag
- HTML | <hr> Tag
- HTML | <nav> Tag
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.