Live Preview
A sentence with removed text:
Our website will be updated soon updated next week.

By the end of this tutorial, you’ll mark deleted text semantically with <del> and track document revisions correctly.
Wrap removed text in opening and closing <del> tags.
Signal text deleted from the document—not just decoration.
Link to a changelog or explanation for the deletion.
Record when the deletion occurred in ISO 8601 format.
Choose the right tag for edits vs outdated content.
Enhance deleted and inserted text with custom styles.
<del> Tag?The del element (<del>) represents content that was deleted from the document. Browsers display it with a strikethrough, but the tag carries semantic meaning—it is for edits and revisions, not just decoration.
<del> means text was removed during editing. <s> means content is no longer accurate or relevant but was not necessarily deleted from the source.
Common uses include document revisions, editorial corrections, changelog entries, corrected announcements, and any content where readers should see what was removed.
Wrap removed text between opening and closing del tags:
<del>Deleted text here</del><del> is an inline element—it nests inside paragraphs and headings.<ins> when showing both old and new wording.del as a generic strikethrough style—use s or CSS when semantics differ.| Feature | Syntax / Rule | Notes |
|---|---|---|
| cite | cite="URL" | Explains why text was deleted |
| datetime | datetime="ISO 8601" | When the deletion occurred |
| Default style | Strikethrough | text-decoration: line-through |
| Pairs with | <ins> | Show insertions alongside deletions |
| Not the same as | <s> | s = no longer relevant |
| Use cases | Revisions, edits | Changelogs, corrections |
<del>, <ins>, and <s>These tags all affect text appearance but carry different meanings:
| Tag | Meaning | When to use |
|---|---|---|
<del> | Deleted from document | Editorial revisions, removed text |
<ins> | Inserted into document | New text added during an edit |
<s> | No longer accurate | Outdated sale prices, struck content |
<strike> | Obsolete tag | Use s or del instead |
The <del> tag supports cite and datetime for machine-readable edit metadata:
cite OptionalURL to a document explaining why the text was deleted.
cite="https://..."datetime OptionalISO 8601 date or date-time when the deletion occurred.
datetime="2026-06-01"class GlobalCSS hook for custom deleted-text styling.
class="removed"id GlobalUnique identifier for linking or scripting.
id="edit-1"title GlobalTooltip explaining the deletion to users on hover.
title="Removed in v2"Visibility Hiddencite and datetime are not shown on the page by default.
Metadata onlyExample: <del cite="https://example.com/changelog" datetime="2026-06-01T10:00:00Z">old price</del>
Basic deletions, cite revisions, del + ins edits, and datetime price changes with copy-ready code and live previews.
A sentence with removed text:
Our website will be updated soon updated next week.
Mark removed words inside a sentence.
<p>
Our website will be
<del>updated soon</del>
updated next week.
</p>Use <del> for document revisions, editorial corrections, changelog entries, corrected announcements, and any content where readers should see what was removed.
Link to a changelog or explanation for why text was removed.
<p>
In version 2.0, we
<del cite="https://example.com/changelog-v2">deprecated</del>
removed support for legacy features.
</p>Pair del with ins to show both the old and new wording.
<p>
The original plan was
<del>postponed</del>
<ins>re-evaluated</ins>
due to unforeseen circumstances.
</p>Record when old content was removed using the datetime attribute.
<p>
Ticket price:
<del datetime="2026-06-01T10:00:00Z">$49</del>
$39
</p>Browsers apply strikethrough by default. Enhance deleted and inserted text with color and background for clearer revision tracking:
text-decoration Default line-throughcolor Red for deletionsbackground Highlight edit blocksins pairing Green for insertions/* Deleted text styling */
del {
color: #991b1b;
text-decoration: line-through;
}
del.edit-removed {
background: #fef2f2;
padding: 0.1rem 0.25rem;
}
ins.edit-added {
color: #166534;
background: #f0fdf4;
text-decoration: none;
border-bottom: 2px solid #22c55e;
}Live styled revision tracking
Status: pending approved
Semantic edit markup helps all readers understand changes:
Place deleted words inside del tags.
Default user-agent CSS adds text-decoration: line-through.
cite and datetime document why and when.
Readers see what changed—with meaning, not just decoration.
The <del> element is fully supported in all modern browsers and legacy Internet Explorer.
From legacy Internet Explorer to the latest mobile browsers — the del element is fully supported for semantic revision tracking.
Bottom line: Ship semantic deleted text with confidence. The <del> element is safe to use in every production environment today.
The <del> tag marks text removed from a document. Combined with ins, cite, and datetime, it creates clear, semantic revision tracking—use it for edits, not just strikethrough styling.
del for removed document textins when showing replacementscite and datetime when usefuldel only for visual strikethroughdel with s or strike<del>Bookmark these before you ship — they’ll keep your revision markup semantic and accessible.
<del> marks text removed from the document.
Browsers apply line-through via user-agent styles.
RenderShow both removed and added text for edits.
PatternLink to a changelog or explanation for the deletion.
MetadataRecord when content was removed in ISO 8601 format.
Metadatadel = removed; s = no longer relevant.
del means text was deleted during editing. s means content is no longer accurate or relevant but was not necessarily removed from the source.del for removed text and ins for newly added text when showing document revisions.cite links to a document explaining the deletion. datetime records when it happened in ISO 8601 format.strike is obsolete. Use del for removed text or s for no-longer-relevant content.Practice del, ins, and edit attributes in the interactive HTML editor.
6 people found this page helpful