HTML <del> Delete Tag
Tags: learnhtml, htmld
Published: 2021-02-19 08:47:52

---
title: HTML <del> Delete Tag
published: true
date: 2021-02-17 12:12:28 UTC
tags: LearnHTML,HTMLD
canonical_url: https://sharepointanchor.com/learn-html/html-del-delete-tag/
---

In [HTML](https://sharepointanchor.com/learn-html/ "HTML"), the **del** tag stands for **delete** , and it is used to **mark a portion of text which has been deleted** from the document. The browsers display the text found within the del tag as a **strike-through text**. You can change this property by using the **CSS text-decoration** property.

**Tips** : You can use the **<ins>** tag to **indicate the deleted text** with [HTML](https://sharepointanchor.com/learn-html/ "HTML") **del** tag.

The presence of the **del** tag is **not announced by most screen reading technology**. It can be announced by using the **CSS content property** along with the **“::before“** and **“::after“** pseudo-elements.

<svg aria-hidden="true" focusable="false" data-icon="clock" width="20" height="20" fill="none" stroke="currentColor" style="display:inline-block;vertical-align:-0.1em" role="img" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>Estimated reading time: 2 minutes

## Syntax:

The del tag contains both an **opening del tag** and **closing del tag**. The content is written between these two tags.

```

<del>Write your text here </del>

```

### HTML del Tag:


| HTML del tag | Markup the deleted text |
| Content categories | Phrasing content, flow content |
| Permitted content | Transparent |
| Tag omission | None, both opening and closing tags are mandatory. |
| Permitted parents | Any [HTML](https://sharepointanchor.com/learn-html/ "HTML") element that accepts phrasing content. |
| Implicit ARIA role | No corresponding role |
| Permitted ARIA roles | Any |
| DOM interface | HTMLModElement |

## Sample of the HTML del Tag:

Here is the simple example for [HTML](https://sharepointanchor.com/learn-html/ "HTML") delete tag.

```

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
<h3>Example for Delete tag:</h3>
<p><b>What is your favorite sports?</b></p>
    <p>My favorite sports is <del>Hockey</del> <ins style="color:#C40655;"> Cricket</ins>!</p>
  </body>
</html>

```

**Info** : For displaying the text us underline, you can use the **CSS text-decoration** property with the **“line-through”** value.

## Result:

![](https://sharepointanchor.com/wp-content/uploads/2021/02/Result-22.png)<figcaption>Result</figcaption>

### Download Sample File:

[HTML-del-Tag](https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-del-Tag-1.html)[Download](https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-del-Tag-1.html)

## Attributes:

The **del** tag supports both the **Global Attributes** and the **Event Attributes**.



| Attribute | value | Description |
| --- | --- | --- |
| cite | URL | It will specify the **URL of the document** , which explains why the text was edited or deleted. |
| datetime | YYYY-MM-DDThh:mm:ssTZD | Helps to define the **date and time of the deleted text**. |

## Browser Support:

![](https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-9.png)<figcaption>Browser Support</figcaption>

### Related Articles:

- **[HTML Aside Tag](https://sharepointanchor.com/learn-html/html-aside-tag/)**
- **[HTML Comments Tag](https://sharepointanchor.com/learn-html/html-comments-tag/)**
- **[CSS Comments](https://sharepointanchor.com/learn-css/css-comments/)**
- **[HTML Center Tag](https://sharepointanchor.com/learn-html/html-center-tag/)**
- **[HTML Code Tag](https://sharepointanchor.com/learn-html/html-code-tag/)**

The post [HTML Delete Tag](https://sharepointanchor.com/learn-html/html-del-delete-tag/) appeared first on [Share Point Anchor](https://sharepointanchor.com).