HTML <ins> tag

The <ins> tag is used to define inserted texts within a document.

Type: Inline Element

Syntax of <ins> tag

<ins> Inserted text </ins>

Supported Browsers

Tag Chrome Internet Explorer Firefox Safari Opera Mini
<ins> Yes Yes Yes Yes Yes

Full code example

<!DOCTYPE html>
<html>
<head>
</head>
<body>
 <p> The product costs <del> Rs.800 </del> <ins> Rs.599 </ins>
</body>
</html>
Run The code »

The product costs Rs.800 Rs.599

Attributes of <ins> tag

Attribute Value Note
cite URL It defines the URL of the document that explains why the texts are inserted or modified.
datetime YYYY-MM-DDThh:mm:ssTZD It defines the date and exact time when the texts was insterted.

Example

    
<ins datetime="2026-02-01T14:30:00+05:30" Old text </ins>

Note that: These two attributes will not display on any ordinary web browser because they are only for machine readable metadata, screen readers, search engines.

More reference

The <ins> tag is not only making the text underline, it must also have semantic meaning defining why it is an inserted text. Usually it associates with the <del> tag to show the modification from the former value. It is mainly used to change the initial value like price, fare, clothes or any other objects.

Default CSS property of <ins> tag
ins {
  text-decoration: underline;
}