<del> tag

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>

Example

<p>What is <del>my</del> your name?</p>

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

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

supporting-browsers for tags

Related Tags

<ins> tag.

Tutorials for all brains!