Text Content

HTML <del> element

Marks content deleted from a document. cite and datetime may record a reason URL and the time of the change. A deleted passage can be inline or span permitted flow content depending on the parent. Use datetime for the edit time and cite for the explanation URL, not for visible change history by themselves. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<del>Removed text</del>

Parameters & Attributes

NameTypeDescription
citeURLPoints to the source of a quotation or the explanation of an edit. Browsers generally do not display this URL automatically; provide visible attribution when helpful.
datetimemachine-readable date or timeProvides a machine-readable value for time, or a date/time for an insertion or deletion. Use the format appropriate to the element, not an arbitrary localized date string.

Return Value

HTMLModElement

Content model: Transparent content; follow the parent context.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>HTML example</title>  </head>  <body>    <p>      Price:      <del>$20</del>      $15.    </p>  </body></html>
HTML Reference