Warning:
This wiki has been archived and is now read-only.

Elements/del

From HTML Wiki
Jump to: navigation, search

<del>

The <del> element represents a removal from the document.

Point

  • This elements should not cross implied paragraph boundaries.


HTML Attributes

  • cite = valid URL potentially surrounded by space
    Specify the address of a document that explains the change. For example, the minutes of meeting.
  • datetime = valid date string with optional time
    Specify the time and date of the change.

See also global attributes.


Examples

Example A

The following shows a "to do" list where items that have been done are crossed-off with the date and time of their completion [try it]:

<h1>To Do</h1>
<ul>
 <li>Empty the dishwasher</li>
 <li><del datetime="2009-10-11T01:25-07:00">Watch Walter Lewin's lectures</del></li>
 <li><del datetime="2009-10-10T23:38-07:00">Download more tracks</del></li>
 <li>Buy a printer</li>
</ul>


HTML Reference

The HTML5 specification defines the <del> element in 4.7.2 The del element.