HTML del Tag

HTML del Tag

HTML del Tag as the name suggests defines the deleted text. Most Browsers will strike a line through the deleted text enclosed inside the del tag.

Syntax of HTML del Tag

The Syntax of HTML del Tag is shown below, It has both starting and ending tags.

<del>
HTML
</del>

Usage of HTML del Tag

HTML del Tag is used to define the deleted text on a Web page. Sometimes this tag is also used to put a line on the text, just to give it a style.

HTML del tag is mostly used with ins tag

Example of HTML del Tag

Simple example of HTML del Tag is shown below.

<p>My favorite language is <del>PHP</del>.</p>

Output

The output of above HTML code is shown below.

My favorite language is PHP.

Cite attribute is used inside the del tag to define a url which explains why the text was deleted.

datetime attribute specifies the date and time when text was deleted.

Browser Support for HTML del Tag

HTML del Tag is supported by all major browsers including Safari and Internet Explorer.

Global Attributes Support in HTML del Tag

The HTML del Tag supports all Global Attributes.

Event Attributes Support in HTML del Tag

The HTML del Tag supports all Event Attributes.

HTML del Tag Video

Watch our video on HTML del Tag and subscribe our Youtube Channel.

Post a Comment

Previous Post Next Post