<del>

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type

The DEL element defines deleted text.


<del>deleted text</del>

This element changes into a block-level element or an inline element by the situation.

When a block-level element is included in the content of this element
This element is treated as a block-level element.
When a block-level element is not included in the content of this element
This element is treated as an inline element.

Example


<p>Normal text, <del>Deleted text,</del> Normal text,</p>

Output

Normal text, Deleted text, Normal text,

In the following cases, this DEL element is treated as a block-level element.


<del>
<p>Deleted text</p>
</del>

Output

Deleted text

In the following cases, this DEL element is treated as an inline element.


<del>
<s>Deleted text</s>
</del>

Output
Deleted text

<p>I started playing baseball in <del>2000</del> <ins>2001</ins>.</p>

Output

I started playing baseball in 2000 2001.