VOOZH about

URL: https://www.geeksforgeeks.org/html/html-del-tag/

⇱ HTML del Tag - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML del Tag

Last Updated : 10 Apr, 2026

The HTML <del> tag is used to indicate text that has been deleted from a document.

  • It visually represents this deletion by striking through the text, which helps in tracking changes or revisions in documents.
  • It provides semantic meaning for content that has been intentionally removed, such as in editing or version control scenarios.

Syntax:

<del attr="values"> Contents... </del>
  • cite: The cite is used to specify the URL of the document or message which denotes the reason for deleting the text.
  • datetime: The datetime is used to specify the date and time of the deleted text.

Example: <del> tag with datetime attribute

Note: The datetime attribute is semantic metadata only and does not affect the visual appearance unless explicitly rendered using CSS or JavaScript.

Comment
Article Tags: