<del>
ETurner-Bisset1 total contribution
Published Nov 15, 2022Updated Dec 16, 2022
Contribute to Docs
The <del>
element is used to show a deleted portion of text and is commonly intended to show the changes made to a document while keeping a history of the changes made. Though the style can be changed using [CSS] (https://www.codecademy.com/resources/docs/css/typography/text-decoration), browsers render it as strike-through text: example
Note: The
<del>
element is semantically different from the<s>
element because the former conveys an update in a document while the latter does not.
Syntax
<del>
<!-- deleted text here -->
</del>
The <del>
element should only contain text content or other elements meant for text content.
Example
The following is an example of the <del>
element:
<html><head> </head><body><p>This is <del>deleted</del> text.</p></body></html>
The rendered output would look like this:
All contributors
- ETurner-Bisset1 total contribution
- MarcoBuono2 total contributions
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.