HTML Reference ยท Inline Text
The <del> element
Reference for the HTML <del> element: marking content removed from a document, the cite and datetime attributes, accessibility notes and technical details.
The <del> element marks content that has been removed from a document, while keeping it visible as part of the record. It is the partner of <ins>, which marks added content. Browsers draw a line through deleted text by default.
Typical uses are change logs, corrected articles, edited prices, and to-do lists where finished items stay visible. The optional cite and datetime attributes record why and when the change happened.
<p>Doors open at <del>7 pm</del> <ins>6:30 pm</ins>.</p>
Try it
The second <del> wraps a whole paragraph. That is allowed because <del> is transparent: it may contain whatever its parent may contain.
Attributes
| Attribute | Values | Description |
|---|---|---|
cite |
A URL | A page that explains the change, such as a ticket, a commit or a correction note. Not shown to readers. |
datetime |
A date, or a date and time | When the change was made, e.g. 2026-09-05 or 2026-09-05T10:00Z. |
The element also accepts the global attributes.
Usage notes
<del>vs<s>.<del>records an edit to the document.<s>marks content that is no longer accurate or relevant but was never "removed", such as an old price shown next to a sale price.- Don't cross paragraph boundaries. A single
<del>may wrap whole paragraphs, or sit inside one, but should not start in one paragraph and end in the next. Use one<del>per paragraph instead. - Accessibility. Many screen readers don't announce deleted text by default. If the reader must know that something was removed, say so in words, or add visually hidden text such as "deleted:" before it.
- Lists. To mark a whole list item as removed, put
<del>inside the<li>, since a list can only contain list items.
Technical summary
| Content categories | Flow content, phrasing content |
| Permitted content | Transparent |
| Tag omission | None; both the start and end tags are required |
| Permitted parents | Any element that accepts phrasing content |
| Implicit ARIA role | deletion |
| DOM interface | HTMLModElement |
| Default display | inline (with a line through the text) |
Browser support
Supported in every browser.
Related
<ins>โ inserted content<s>โ content that is no longer accurate<time>โ dates shown on the page- Lessons: Formatting Text, Quotations, Citations and Abbreviations