HTML/Elements/del

From Web Education Community Group
< HTML‎ | Elements
Revision as of 17:20, 22 November 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>

Del01.png

HTML Reference

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