HTML <ins> Tag
The <ins> tag is used to define a part of the text which has been inserted into the document. In the browser, tag content is displayed as an underlined text.
The <ins> tag is usually used with the <del> tag, which contains the deleted part of the text. The content of this element is displayed as crossed out text.
Syntax
The content of the tag is written between the opening (<ins>) and the closing (</ins>) tags.
Example
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<p>She likes <del>violets</del> <ins>snowdrops</ins>․</p>
</body>
</html>
Result
Attributes
Attribute | Value | Description |
---|---|---|
cite | URL | Indicates the URL of the document, where it is explained why the text is edited or deleted. |
datetime | YYYY-MM-DDThh:mm:ssTZD | Defines the date and time of deleting the text. |
The <ins> tag also supports the Global Attributes and the Event Attributes.
Browser support
|
|
|
|
|
---|---|---|---|---|