The HTML <ins> tag

Definition and Usage

<ins> The tag defines the text inserted into the document. Browsers usually add an underline below the inserted text.

Tip:Please refer to <del> Used together to describe updates and corrections in the document.

See also:

HTML DOM Reference Manual:Ins Object

Instance

Example 1

Include the text with deleted and newly inserted parts:

<p>The color I like is <del>blue</del><ins>red</ins>!</p>

Try It Yourself

Example 2

Use CSS to set the styles of <del> and <ins>:

<html>
<head>
<style>
del {background-color: tomato;}
ins {background-color: yellow;}
</style>
</head>
<body>
<p>The color I like is <del>blue</del><ins>red</ins>!</p>
</body>
</html>

Try It Yourself

Attribute

Attribute Value Description
cite URL Specifies the URL of the document that explains the reason for inserting/changing the text.
datetime YYYY-MM-DDThh:mm:ssTZD Specifies the date and time of insertion/changing the text.

Global Attributes

<ins> The tag also supports Global Attributes in HTML.

Event Attributes

<ins> The tag also supports Event Attributes in HTML.

Default CSS Settings

Most browsers will display the following default values <ins> Element:

ins {
  text-decoration: underline;
}

Try It Yourself

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support