HTML <del> tag
The <del> tag defines the deleted text in HTML document.
When you use this tag to delete a specified text, the browsers will strike a line through deleted text.
Syntax:
<del>Text…<del>
How Browser will display
INLINE.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
No Difference | No Difference | No Difference |
Attributes used with the <del> tag
Attribute | Description |
---|---|
cite | This defines a URL to other document to explain why you deleted the text. |
datetime | This sets the date and time when the text was marked as deleted. The format is YYYY-MM-DDThh:mm:ssTZD |
Note/Info If you wish to replace a deleted text with another text, then you can use the <ins> tag to mark an inserted text.
Global Attributes
The <del> tag supports Global attributes.
Event Attributes
The <del> tag supports Event attributes.
Default CSS Value
text-decoration: line-through;
Supporting Browsers
Related Tags
<ins> tag.