<del> marks content deleted from a document. Pair it with ins when showing an edit. Use s when information is merely no longer relevant, rather than a recorded document revision.
A visible revision
The surrounding sentence describes the change, so readers need not infer it solely from strikethrough or underlining.
HTML and CSS
HTML
<p>
The meeting time changed from <del datetime="2026-09-30">10:00</del> to
<ins datetime="2026-09-30">11:00</ins>.
</p>
CSS
del {
text-decoration: line-through;
}
ins {
text-decoration: underline;
}
Edit HTML or CSS to update the preview as you type. Copy code snippet copies the selected tab. Preview spacing and font defaults are not included.
Attributes and placement
datetime records when the edit occurred using a valid date with optional time. cite can point to a resource explaining it. Neither attribute is normally displayed; include a visible explanation or link if readers need it.
Del can wrap phrasing or flow content where that content is valid. Keep edits within sensible structural boundaries rather than crossing paragraph tags, table cells, or other unrelated containers.
Accessibility and appearance
Browsers usually draw a line through deleted text. Many screen-reader configurations do not announce the deletion automatically. Use explicit wording when knowing the old/new distinction matters. title or aria-label on deleted text is not a dependable universal fix.
Remove the text-decoration rule and default styling in an inspection tool: the plain sentence should still communicate which time was replaced.
Sources and browser support
MDN: del describes the syntax and links to the specification and compatibility data. Check individual values in that table when supporting older browsers.