HTML <del> tag
Examples
With some parts of the text and insert a new section has been deleted:
<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>
try it"
Browser Support
All major browsers support <del> tag.
Tag definitions and instructions
<Del> tag defines the document deleted text.
Tips and Notes
Tip: You can also take a look at <ins> tag How to mark inserted text.
Tip: <del> and <ins> used with description document updates and fixes.Browsers usually add a strikethrough in the text have been deleted in the new text is inserted to add an underscore.
Differences between HTML 4.01 and HTML5
no.
Attributes
属性 | 值 | 描述 |
---|---|---|
cite | URL | 规定一个解释了文本被删除的原因的文档的 URL。 |
datetime | YYYY-MM-DDThh:mm:ssTZD | 规定文本被删除的日期和时间。 |
Global Properties
<del> tag supports HTML global properties .
Event Properties
<del> tag supports HTML event properties .