<del>: The DEL Element

Last updated: 2026-10-13

<del>The DEL Element

Represents text that has been deleted from the document, rendered with a strikethrough by default.

CategoryFormatting
Content ModelPhrasing content
Allowed ParentsAny element that accepts phrasing content
Content TagYes — requires closing </del> tag
StatusStandard

📝 Syntax

<del>deleted text</del>

⚙️ Attributes

This element supports the global attributes plus the following:

AttributeValueDescription
citeURLA URL explaining the reason for the deletion.
datetimeDatetimeThe date and time of the deletion.

▶ Example

Edit the code below and see the live result in the playground:

🌐 Browser Support

Browser ChromeChrome EdgeEdge FirefoxFirefox SafariSafari OperaOpera
<del> ✓ v1 ✓ v12 ✓ v1 ✓ v1 ✓ v1
Supported in all major browsers
Tip: Often paired with <ins> to show a revision (delete then insert).

❓ FAQ

QWhat is the difference between del and s?
ABoth render as strikethrough by default, but the semantics differ: <del> means the content has been deleted (often paired with <ins> to show revisions), while <s> means the content is no longer accurate or relevant (such as a sold-out price). Use <del> for document edits and <s> for outdated information.
QDoes del need to be used with ins?
ANot required, but recommended. In revision scenarios, <del> marks the removed old content and <ins> marks the new content; showing them as a pair makes the change clear. Using <del> alone is also perfectly valid.
QWhat are the cite and datetime attributes of del for?
AThe cite attribute takes a URL pointing to a document explaining why the content was removed; the datetime attribute records when it was removed (ISO 8601 format, e.g. 2026-01-15). Both are invisible to users but provide revision metadata for search engines and tools.

📚 Related Tutorials

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏