
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How to mark deleted text in HTML?
We use <del> tag, to delete a text in HTML. This tag mark strike on the text which is to be delete from the document.
We can also use the style attribute, to strike a text in HTML. The style attribute specifies an inline style for an element. This attribute is used inside the HTML <p> tag, with the CSS property text-decoration property.
Syntax
Following is the syntax to delete a text in HTML.
<del> The content to be deleted </del>
Example
Following is the example program to delete a text in HTML.
<!DOCTYPE html> <html> <head> </head> <body> <p>DLF stands for<del>Delhi Land and Finance.</del></p> <p>Delhi Land and Finance is one of the largest commercial real estate developer in India.</p> </body> </html>
Example
In the example below, we used <del> tag on a particular text inside the <h1> tag.
<!DOCTYPE html> <html> <head> <title>HTML u tag</title> </head> <body> <h1>Welcome to <del> Disney land </del> Kids.</h1> </body> </html>
Marking deleted text by inline CSS
Using CSS property for deleting a text in HTML.
Syntax
Following is the syntax to delete a text in HTML using CSS property.
<p style="text decoration:line-through;">The content to be underlined</p>
Example
Following is the example program to delete a text in HTML using CSS property.
<!DOCTYPE html> <html> <head> </head> <body> <p>DLF stands for</p><p style="text-decoration:line-through;">Delhi Land and Finance</p> <p>Delhi Land and Finance is one of the largest commercial real estate developer in India.</p> </body> </html>
- Related Articles
- How to display deleted text in HTML?
- How to mark strikethrough text in HTML?
- How to mark inserted text in HTML?
- How to mark text superscript in HTML?
- How to display a URL which explains the quote/deleted/inserted text in HTML?
- How to set date and time when the text was deleted using HTML?
- How to mark abbreviation or acronyms in HTML?
- How to define a text that has been deleted from the document in HTML5?
- How to mark work title using cite tag in HTML?
- How to center text in HTML?
- How to set Text alignment in HTML?
- How to make text bold in HTML?
- How to make text italic in HTML?
- How to change text font in HTML?
- How to underline a text in HTML?

Advertisements