How to Mark Deleted Text in HTML? (original) (raw)
Last Updated : 23 Jul, 2025
In HTML, you can mark text as deleted to indicate that it has been removed from the document. This is often displayed with a strikethrough effect. There are different methods to mark deleted text in HTML, including using the tag, the tag, and the tag.
Table of Content
Approach 1: Using the Tag
The tag is used to mark text that has been deleted from the document. By default, browsers typically render text within the tag with a strikethrough effect.
HTML `
Deleted TextThis is deleted text.
`
**Output:
This is deleted text.
Approach 2: Using the Tag
The tag is a generic tag for strikethrough text, and it can be used to mark deleted text as well.
HTML `
Deleted TextThis is deleted text.
`
**Output:
This is deleted text.
Approach 3: Using the Tag
The tag is a deprecated HTML tag that was used to mark text with a strikethrough effect. While it is still supported in most browsers, it is recommended to use the or tags instead.
HTML `
Deleted TextThis is deleted text.
`
**Output:
This is deleted text.