The HTML tag <del>
is used to indicate that a section of text has been deleted or removed from a document. This tag is commonly used in documents that have been revised or edited, to show what has been removed from the original version.
The <del>
tag is a part of the HTML5 specification and is supported by all modern web browsers. It is a self-closing tag, which means that it does not require a closing tag.
The <del>
tag is used to indicate that a section of text has been deleted or removed from a document. This tag is commonly used in documents that have been revised or edited, to show what has been removed from the original version.
The <del>
tag can be used in conjunction with the <ins>
tag, which is used to indicate that a section of text has been added to a document. Together, these tags can be used to show the changes that have been made to a document over time.
Here is an example of how the <del>
tag can be used:
<p>The quick brown fox jumps over the <del>lazy</del> dog.</p>
In this example, the word "lazy" has been deleted from the sentence. When rendered in a web browser, the word "lazy" will be displayed with a strike-through line through it, indicating that it has been deleted.
Here are some examples of how the <del>
tag can be used:
<p>The quick brown fox jumps over the <del>lazy</del> dog.</p>
In this example, the word "lazy" has been deleted from the sentence.
<p>I have <del>never</del> always loved chocolate.</p>
In this example, the word "never" has been deleted from the sentence.
<p>The <del>old</del> new version of the software is now available.</p>
In this example, the word "old" has been deleted from the sentence.