<del> tag marks deleted text with a strike-through. This tag is commonly used together with the <ins> tag which marks inserted text. Both are designed to track document changes.
<del> element that marks 'Van Gooch' as deleted.
The correct spelling has also been added.
This painting is by
Van Gooch .
<p>This painting is by <del>Van Gooch</del> <ins>Van Gogh</ins>.</p>
<del> tag marks text that has been deleted from a document.
This tag is used to track document changes and revisions; often in combination with the <ins> tag.
By default, this element is rendered as strike-through text.
This table lists the
<del> tag attributes.
Specifies the date and time the text was deleted.
Enter this format: YYYY-MM-DDThh:mm:ssTZD.
|cite||URL||References a document that shows why the text was deleted.|
|id||identifier||Defines a unique identifier for the element.|
|class||classnames||Sets one or more CSS classes to be applied to the element.|
|style||CSS-styles||Sets the style for the element.|
For additional global attributes see our global attributes list.
By default, the
<del> line-through color is the same as the text.
This color can be changed using the
text-decoration-color CSS property.
Deleted text with a red line-through.
And this other painting is by
<p> And this other painting is by <del style="text-decoration-color: red;">Pal Cesane</del> <ins style="text-decoration:none;">Paul Cézanne</ins>. </p>
<del> tag is part of a group of tags
that are used to create and format text documents.
This group is referred to as the Text tag group.
Together, these tags allow you to create comprehensive HTML text documents.
A list of text tags.
|<h1>-<h6>||Defines text headings in 6 different sizes|
|<p>||Creates a paragraph|
|<span>||Container for one or more inline text elements|
|<br>||Creates a line break|
|<sup>||Specifies superscript text|
|<sub>||Specifies subscripted text|
|<u>||Specifies underlined text|
|<i>||Specifies italic text|
|<b>||Specifies bold text|
|<em>||Marks text that needs emphasis|
|<strong>||Indicates text that is important or with high urgency|
|<del>||Defines deleted text|
|<ins>||Defines inserted text|
|<ruby>||Represents a small annotation with pronunciation of text|
|<kbd>||Specifies keyboard input, such as, CTRL or ALT|
|<wbr>||Specifies a preferred word-break location for long words|
Here is when
<del> support started for each browser: