Revision 18108 of <del>

  • Revision slug: HTML/Element/del
  • Revision title: del
  • Revision id: 18108
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment one or more formatting changes

Revision Content

Summary

The Deleted Text (<del>) HTML element represents a range of text that has been deleted from a document. This element is often (but need not be) rendered with strike-through text.

Usage Context

Permitted content Transparent, either phrasing content or flow content.
Tag omission None, must have both a start tag and and end tag.
Permitted parent elements Any element that accepts phrasing content, or any element that accepts flow content.
Normative document HTML 5, section 4.7.2; HTML 4.01, section 9.4

Attributes

Like all HTML elements, this element provides the global attributes.

{{ htmlattrdef("cite") }}
A URI for a resource that explains the change (for example, meeting minutes).
{{ htmlattrdef("datetime") }}
This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp.

DOM interface

Examples

<p><del>This text has been deleted</del></p>

Result

 

This text has been deleted

See also

  • {{ HTMLElement("ins") }} element for insertions into a text

 

Revision Source

<h2>Summary</h2>
<p>The Deleted Text (<code>&lt;del&gt;</code>) HTML element represents a range of text that has been deleted from a document. This element is often (but need not be) rendered with strike-through text.</p>
<h2>Usage Context</h2>
<table class="standard-table"> <tbody> <tr> <td>Permitted content</td> <td><a href="/en/HTML/Content_categories#Transparent" title="en/HTML/Content categories#Transparent">Transparent</a>, either <a href="/en/HTML/Content_categories#phrasing_content" title="en/HTML/Content categories#phrasing content">phrasing content</a> or <a href="/en/HTML/Content_categories#flow_content" title="en/HTML/Content categories#flow content">flow content</a>.</td> </tr> <tr> <td>Tag omission</td> <td>None, must have both a start tag and and end tag.</td> </tr> <tr> <td>Permitted parent elements</td> <td>Any element that accepts <a href="/en/HTML/Content_categories#phrasing_content" title="en/HTML/Content categories#phrasing content">phrasing content</a>, or any element that accepts <a href="/en/HTML/Content_categories#flow_content" title="en/HTML/Content categories#flow content">flow content</a>.</td> </tr> <tr> <td>Normative document</td> <td><a class=" external" href="http://www.w3.org/TR/html5/edits.html#the-del-element" title="http://www.w3.org/TR/html5/edits.html#the-del-element">HTML 5, section 4.7.2</a>; <a class=" external" href="http://www.w3.org/TR/html401/struct/text.html#h-9.4" title="http://www.w3.org/TR/html401/struct/text.html#h-9.4">HTML 4.01, section 9.4</a></td> </tr> </tbody>
</table>
<h2>Attributes</h2>
<p>Like all HTML elements, this element provides the <a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">global attributes</a>.</p>
<dl> <dt>{{ htmlattrdef("cite") }}</dt> <dd>A URI for a resource that explains the change (for example, meeting minutes).</dd> <dt>{{ htmlattrdef("datetime") }}</dt> <dd>This attribute indicates the time and date of the change and must be a <a class=" external" href="http://www.w3.org/TR/html5/common-microsyntaxes.html#valid-date-string-with-optional-time" title="http://www.w3.org/TR/html5/common-microsyntaxes.html#valid-date-string-with-optional-time">valid date with an optional time string</a>. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp.</dd> <h2>DOM interface</h2> <ul> <li><a href="/en/DOM/HTMLModElement" title="en/DOM/HTMLModElement ">HTMLModElement </a></li> </ul> <h2>Examples</h2>
<pre><code>&lt;p&gt;&lt;del&gt;This text has been deleted&lt;/del&gt;&lt;/p&gt;</code></pre> <h4>Result</h4>
<p> </p><del>This text has been deleted</del><h2>See also</h2> <ul> <li>{{ HTMLElement("ins") }} element for insertions into a text</li> </ul> <p> </p>
</dl>
Revert to this revision