del – deleted text
<del datetime="2026-10-09">…</del>
Text removed from a document when it was edited but kept visible to show the changes: a canceled item in a program, a corrected mistake in an article, a changed condition. The browser strikes it through.
- Default display:
display: inline - End tag: required
- Content: anything its parent may contain (even blocks)
- Where it can be used: anywhere phrasing or flow content is allowed
- DOM interface:
HTMLModElement
Attributes
- datetime – when the text was removed.
- cite – the URL of a page explaining the change.
Examples
A to-do list with completed items:
<ul> <li><del>Order flour</del></li> <li><del>Feed the starter</del></li> <li>Bake the bread</li> </ul>
Things to watch out for
- Information that is no longer valid but is not removed (the original price) is
s–delbelongs to edits of a document. - Screen readers usually do not announce the strikethrough – convey the meaning in text too.
Browser support
Baseline – widely available: works in all major browsers and has for a long time (since 2015 at the latest). Since version: Chrome 1, Firefox 1, Safari 4. As of October 2026 (MDN browser-compat-data).
Related:
ins – inserted text
s – text that is no longer accurate
time – date and time