# `<del>`

> The `<del>` HTML element represents deleted or removed text within a document.

## What is the difference between `<del>` and `<s>` in HTML?

The element that is used to represent text that has been removed from a document. It typically renders as strikethrough text, indicating that the content is no longer relevant or has been replaced.

- Topic: Semantics
- Type: tag
- Browser support: Chrome 1+, Chrome Android 18+, Edge 12+, Firefox 1+, Firefox Android 4+, Safari 4+, Safari iOS 3.2+

## Example

Wrong:

```html
<p>
  Price: <del>$40</del> $30
</p>
```

Right:

```html
<p>
  Price: <s>$40</s> $30
</p>
```

`<s>` marks content that is no longer accurate, while `<del>` marks an edit removed from the document.

## Common mistakes

- Using `<del>` for an old price, which is no longer relevant rather than removed.
- Relying on the strikethrough alone, which most screen readers do not announce.

## Interview questions

### What attributes does `<del>` support?

`cite` for a URL explaining the change and `datetime` for when it was made.

### Do screen readers announce `<del>`?

Most do not by default, so add hidden text like 'removed' when the change matters.

## Related cards

- [`<ins>`](https://wonderium.dev/html/ins.md)
- [`<s>`](https://wonderium.dev/html/s.md)
- [deletion](https://wonderium.dev/a11y/deletion.md)
- [`<time>`](https://wonderium.dev/html/time.md)

---

- Level: [HTML](https://wonderium.dev/html.md)
- HTML version: https://wonderium.dev/html/del
- Last updated: 2026-11-25
