Inline
HTML 4.0
The deleted text element represents text that has been deleted or removed from a document, typically displayed with a strikethrough.
The <del> element indicates text that has been removed during editing or revision.
| Attribute | Description | Example |
|---|
cite | URL explaining the deletion | cite="https://example.com/changelog" |
datetime | When deletion occurred | datetime="2024-12-11T10:30:00" |
Combine <del> with <ins> to show changes:
Important distinction:
<!-- Text that was removed/deleted -->
<p>Price: <del>$99</del> $79</p>
<p>Meeting: <del>Tuesday</del> Wednesday</p>
Use for content that has been removed during editing.
<!-- Text that is no longer accurate/relevant -->
<p><s>Out of stock</s> Back in stock!</p>
<p><s>Limited offer</s> Offer extended!</p>
Use for content that is no longer accurate but not deleted.
Customize the deleted text appearance:
Many screen readers announce deleted text as “deletion” or “removed,” helping users understand the content status.
Make sure the reason for deletion is clear:
<p><del>Contact support</del></p>
For enhanced accessibility:
<del aria-label="Removed: outdated information">
<ins aria-label="Added: current information">
The <del> element can wrap block-level content:
| Browser | Version | Notes |
|---|
| Chrome | 1+ | Full support |
| Firefox | 1+ | Full support |
| Safari | 1+ | Full support |
| Edge | 12+ | Full support |
| IE | 4+ | Full support |
The <del> element has excellent browser support across all versions.