
- 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
HTML Tag
The <del> tag in HTML is used to display the deleted text, which would strike a line on that specific text/texts.
Following are the attributes of the <del> tag −
- cite − A URL that would tell why the text was deleted
- datetime − The date and time when the text was deleted.
Let us now see an example to implement the <del> element in HTML −
Example
<!DOCTYPE html> <html> <body> <h2>Player Details with Reporting Time</h2> <p>These are the <ins>details with reporting time</ins></p> <form> <fieldset> <legend>New Details −</legend> Player − <input type="text"><br> Rank − <input type="number"><br> Email − <input type="email"><br> Reporting Time − <input type="time"> </fieldset> </form> <p><del>All data captured before the World Cup.<del></p> </body> </html>
This will produce the following output displaying a strike text, since we have deleted that entire line −
In the above example, we have deleted a text using the <del> elements −
<del> All data captured before the World Cup. <del>
Now, you can see the striked text.
- Related Articles
- HTML DOM Del object
- HTML DOM del cite Property
- HTML DOM del dateTime Property
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML tag

Advertisements