How to mark deleted text in HTML?

HTMLWeb DevelopmentFront End Technology

To mark deleted text in HTML, use the <del>…</del> tag. It renders a strikethrough text. HTML5 introduced the <del> tag. Before the <strike> tag was used to mark deleted text, which is now deprecated.

Just keep in mind both the opening and closing tag is mandatory while using the <del>...</del> tag. Use it inside the <p>…</p> tag.


You can try the following code to mark deleted text in HTML, using the <del> tag

<!DOCTYPE html>
      <title>HTML del tag</title>

         This is demo text. <del>This text is deleted</del>


Updated on 29-Dec-2021 07:40:38