Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <ins> tag


May 04, 2021 HTML Reference Manual


Table of contents


HTML

The label indicates that the text in the range has been added to the document (usually the part of the document that is updated and corrected).

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>

Try it out . . .

Browser support

HTML <ins> tag HTML <ins> tag HTML <ins> tag HTML <ins> tag HTML <ins> tag

All major browsers support the label.


Label definition and instructions for use

The label definition has been inserted into the text in the document.


Tips and comments

Tip: You can also look at the hashtags that mark deleted text.

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.

Tip: The two elements cannot be both block-level and inline at the same time.


The difference between HTML 4.01 and HTML5

No.


Property

属性 描述
cite URL 规定一个文档的 URL,该文档解释了文本被插入的原因。
datetime YYYY-MM-DDThh:mm:ssTZD 规定文本被插入的日期和时间。


Global properties

Labels support the global properties of HTML.


The event property

The tag supports the event properties of HTML.


Related articles

HTML DOM Reference Manual: HTML DOM ins object