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> <html> <head> <title>HTML del tag</title> </head> <body> <h1>Heading</h1> <p> This is demo text. <del>This text is deleted</del> </p> </body> </html>