Revision 308329 of <del>

  • Revision slug: HTML/Element/del
  • Revision title: del
  • Revision id: 308329
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

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
{{ HTML:Element_Navigation() }}

Revision Source

<h2 id="Summary">Summary</h2>
<p>The Deleted Text (<code>&lt;del&gt;</code>) HTML&nbsp;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 id="Usage_Context">Usage Context</h2>
<table class="standard-table">
  <tbody>
    <tr>
      <th>Permitted content</th>
      <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>
      <th>Tag omission</th>
      <td>None, must have both a start tag and and end tag.</td>
    </tr>
    <tr>
      <th>Permitted parent elements</th>
      <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>
      <th>Normative document</th>
      <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&nbsp;4.01, section 9.4</a></td>
    </tr>
  </tbody>
</table>
<h2 id="Attributes">Attributes</h2>
<p>Like all HTML&nbsp;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>
</dl>
<h2 id="DOM_interface">DOM interface</h2>
<ul>
  <li><a href="/en/DOM/HTMLModElement" title="en/DOM/HTMLModElement">HTMLModElement</a></li>
</ul>
<h2 id="Examples">Examples</h2>
<pre class="brush: html">
&lt;p&gt;&lt;del&gt;This text has been deleted&lt;/del&gt;&lt;/p&gt;</pre>
<h3 id="Result">Result</h3>
<div>
  <del>This text has been deleted</del></div>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{ HTMLElement("ins") }} element for insertions into a text</li>
</ul>
<div>
  {{ HTML:Element_Navigation() }}</div>
Revert to this revision