Name
del — HTML 4.01 | HTML5
Synopsis
<del> . . . </del>
Indicates deleted text. It may be useful for legal documents and
any instance where edits need to be tracked. Its counterpart is the
inserted text element (ins
). The
del
element may be used to indicate
either inline or block-level elements.
Start/End Tags
Required/Required
Attributes
Core, Internationalization, Events, HTML5 Global Attributes
cite="
URL
"
Can be set to point to a source document that explains why the document was changed.
datetime="
YYYY-MM-DDThh:mm:ssTZD
"
Specifies the date and time the change was made. Dates and times follow the format shown here where
YYYY
is the four-digit year,MM
is the two-digit month,DD
is the day,hh
is the hour (00 through 23),mm
is the minute (00 through 59), andss
is the second (00 through 59). TZD stands for Time Zone Designator, and its value can beZ
(to indicate UTC, Coordinated Universal Time), an indication of the number of hours and minutes ahead of UTC (such as +03:00), or an indication of the number of hours and minutes behind UTC (such as −02:20).This is the standard format for date and time values in HTML. For more information, see www.w3.org/TR/1998/NOTE-datetime-19980827.
Example
Chief Executive Officer:<del
title="retired" datetime= "2010-08-01T14:09:00EDT">
Peter Pan</del>
<ins>Pippi Longstocking</ins>
Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.