<del>

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

Revision Content

Summary

The HTML <del> element (or HTML Deleted Text 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.

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.

Examples

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

Result

This text has been deleted

Specifications

Specification Status Comment
{{ SpecName('HTML WHATWG', 'edits.html#the-del-element', '<del>') }} {{ Spec2('HTML WHATWG') }}  
{{ SpecName('HTML5 W3C', 'the-del-element.html#the-del-element', '<del>') }} {{ Spec2('HTML5 W3C') }}  
{{ SpecName('HTML4.01', 'struct/text.html#h-9.4', '<del>') }} {{ Spec2('HTML4.01') }}  

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{ CompatVersionUnknown() }} {{ CompatGeckoDesktop("1.0") }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }}

See also

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

Revision Source

<h2 id="Summary">Summary</h2>
<p>The <strong>HTML <code>&lt;del&gt; </code>element</strong> (or <em>HTML Deleted Text Element</em>) 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>
<ul class="htmlelt">
  <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="/en-US/docs/HTML/Content_categories">Content categories</a></dfn><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>.</li>
  <li><dfn>Permitted content</dfn> <a href="/en/HTML/Content_categories#Transparent" title="en/HTML/Content categories#Transparent">Transparent</a>.</li>
  <li><dfn>Tag omission</dfn> {{ no_tag_omission() }}</li>
  <li><dfn>Permitted parent elements</dfn> Any element that accepts <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="en-US/docs/HTML/Content_categories#Phrasing_content">phrasing content</a>.</li>
  <li><dfn>DOM interface</dfn> {{ domxref("HTMLModElement")}}</li>
</ul>
<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="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="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{ SpecName('HTML WHATWG', 'edits.html#the-del-element', '&lt;del&gt;') }}</td>
      <td>{{ Spec2('HTML WHATWG') }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{ SpecName('HTML5 W3C', 'the-del-element.html#the-del-element', '&lt;del&gt;') }}</td>
      <td>{{ Spec2('HTML5 W3C') }}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{ SpecName('HTML4.01', 'struct/text.html#h-9.4', '&lt;del&gt;') }}</td>
      <td>{{ Spec2('HTML4.01') }}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatGeckoDesktop("1.0") }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
      </tr>
    </tbody>
  </table>
</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