Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

del — marking deleted content

The `del` element marks content removed during document editing. It preserves that content in the markup, while optional `datetime` and `cite` attributes describe the change.

Version: WHATWG HTML Living Standard; index snapshot date recorded separately

Syntax

<del datetime="2026-01-15">removed content</del>

The del element represents a removal from the document: the marked content remains in the markup as a record of the change. The ins element marks an addition; combining the two can represent replacing old text with new text.

Optional datetime records the change date, optionally including a time. Use YYYY-MM-DD for a date alone; a full date and time also requires a time-zone offset. Optional cite contains a valid URL of a document explaining the change. Do not assume that the browser will display these metadata or expose cite as an ordinary link.

Both start and end tags are required. The content model is transparent: wrapping content in del does not remove the surrounding context's restrictions. Do not cross implied paragraph boundaries; in a list, put del inside li, not directly inside ul or ol.

Examples

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Deletion example</title>
<p>Meeting day: <del datetime="2026-01-15">Monday</del> <ins datetime="2026-01-15">Tuesday</ins>.</p>
</html>

Result

Meeting day: Monday Tuesday.

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources