TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML del Tag

HTML del Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <del> tag

HTML <del> tag is used to represent the range of text that has been deleted/removed from the document. It is used as a Markup for the deleted content. The browser generally renders it by strike a line through the deleted text, although this can be changed using the CSS property.

Note: To identify the deleted text and inserted text use <ins> tag with <del> which will display deleted and inserted text in a document.

Syntax

<del> Content........</del>

Following are some specifications about the HTML <del> tag

Display Inline
Start tag/End tag Both Start and End tag
Usage Textual

Example 1

<!DOCTYPE html>
<html>
<head>
<title>Del tag</title>
</head>
<body>
<h2>Example of Del Tag</h2>
<p>It represent the <del> deleted </del> text. </p>
</body>
</html>
Test it Now

Output:

HTML del tag

Example 2

Using CSS and <ins> tag

<!DOCTYPE html>
<html>
<head>
<title>Del tag</title>
<style>
	del{
		color: red;
		background-color: #fde1e5;}
   ins{
       color:#16c39a;}
</style>
</head>
<body>
<h2>Example of Del Tag</h2>
<p>Rishi came to Rahul's palce to <del>shock </del> <ins> surprise </ins> him</p>
</body>
</html>
Test it Now

Output:

HTML del tag

Attribute

Attribute Value Description
cite URL It specifies a URL of the resource which explains change or reason of deleting text.
datetime YYYY-MM-DDThh:mm:ssTZD It specifies the date and time when text is deleted.

Global Attribute

HTML <del> tag supports the Global attributes.

Event Attribute

HTML <del> tag supports the Event attributes.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<del>YesYesYesYesYes
Next TopicHTML details tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf