del element is used to indicate a change that saw the
author delete content which appeared in an earlier version of a
del can be used to identify
any removed content, from a specific word or phrase that’s been removed
(in which case the
del is deemed to be an inline
element) to an entire block of content, which could include a number of
nested block-level elements (in this case, the
deemed to be a block-level element).
del element has a counterpart in the
ins element, which is used to
identify an insertion of content into a document.
The example code above would render on screen as shown in Figure 1.
delelement in action
del element is
determined to be inline or block level depends on the context in which
it’s used. If the
del is an immediate child of
body (with a Strict Doctypes declaration), it’s a block-level
element. If it’s a child of a
p element, it’s deemed
to be an inline element.
Note that a
del element can’t contain block-level child elements
when it’s used in a context that would make it inline (for example, a
del contained in a
p can’t contain a
The following text was hastily revised, yet the author chose to identify what was changed:
<p>Bernie enjoyed nothing more than a <del datetime="2007-11-05T23:31:05Z">night out on the town at his favorite drag queen show</del> <ins datetime="2007-11-05T23:33:32Z">quiet night in with a warm cup of cocoa.</ins></p>
Use This For …
This element can be used for inline text content, or blocks of content.
del element has good browser support; all the major
browsers render deleted text with a strikethrough.
support charts show partial rather than full support, because of the lack
of obvious support for the element-specific attributes
In this Section
There are no comments yet.