del ElementThe del element is declared by the XHTML 1.1 Edit Module
Elements in the Edit Module are:ins | del
The del element is used to indicate content which has been deleted from the document
since the last version. See also the ins element.
The cite attribute may be used to provide a
URI which gives the reason for the change
and the datetime attribute may be used to indicate
the date and time of the change. A title attribute
may also be added to provide a brief reason for the deletion. No browser of which I am aware automatically
presents the value of either the cite or the
datetime attribute to the user. This means that,
to obtain this information, the user must either view the document's source code or use browser-specific methods of
retrieving the data - for example, in certain browsers (e.g. Firefox) right-clicking over the element and selecting Properties
will bring up this information. Alternatively, scripting may be used to render this content on the page.
del and ins are not routinely used on web pages
but are useful in specific circumstances, such as for draft specifications or legal documents, where
it is necessary to be able to tell at a glance what has changed since the previous version of
the document (and possibly also when and why).
Examples:
These examples render as:
This section is concerned with...
There is no styling applied to the rendered examples above and so they appear according to your browser's default
behaviour. Commonly inline del content is given a strike-through and inline ins content
is underlined. Block level content, however, is sometimes not styled differently at all - it is therefore a
good idea for the author to use CSS to explicitly style the changed content
- for example one could make sure all deleted text, block and inline, is struck through and also given a pink background using the rule:
del, del * { text-decoration:line-through; background-color:#fcc }
As with the ins element, one should make sure that the document would validate if the
del element were removed and replaced with its content. It is less of an issue with del because presumably the document
was valid prior to insertion of the del in the first place.
There are no #REQUIRED attributes on the del element.
del element are listed below:cite [ type URI ]datetime [ type Datetime ]del element are listed below:class [ type NMTOKENS ]id [ type ID ]style [ type CDATA ], from the Style Attribute Module (deprecated)title [ type Text ]xmlns [ type URI - #FIXED 'http://www.w3.org/1999/xhtml' ]dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Modulexml:lang [ type LanguageCode ]All attributes in the
Events Attribute Collection
are supported:onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
del element is:
See Content Model & Nesting for information about Content Model syntax and Nesting Groups.
delabbr, acronym, address, blockquote, br, cite, code, dfn, div, em, h1 - h6, kbd, p, pre, q, samp, span, strong, varadl, ol, ultablebutton, fieldset, form, input, label, select, textareaimgb, big, hr, i, small, sub, sup, ttmapnoscript, scriptdel, insbdoobjectrubydelbodyabbr, acronym, address, blockquote, cite, code, dfn, div, em, h1 - h6, kbd, p, q, samp, span, strong, varadd, dt, licaption, td, thbutton, fieldset, form, label, legendb, big, i, small, sub, sup, ttmapnoscriptdel, insbdoobjectrb, rt