May 04, 2021 HTML Reference Manual
A piece of text with a deleted part and a newly inserted section:
<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>
All major browsers support the hashtag.
The label defines the text that has been deleted in the document.
Tip: You can also see how the label marks the text inserted first.
Tip: Use with slt;del> and slt;ins> to describe updates and fixes in the documentation. The browser typically adds a line of deletion to the deleted text and an underscore under the newly inserted text.
No.
属性 | 值 | 描述 |
---|---|---|
cite | URL | 规定一个解释了文本被删除的原因的文档的 URL。 |
datetime | YYYY-MM-DDThh:mm:ssTZD | 规定文本被删除的日期和时间。 |
Labels support the global properties of HTML.
The tag supports the event properties of HTML.