The <ins>
tag marks text that has been inserted into a document.
This tag is used to track document changes and revisions.
By default, this element is rendered with an underline.
This <ins>
tag marks the word beautiful as inserted.
Cézanne's studio was in the beautiful city of Aix-en-Provence.
<p>
Cézanne's studio was in the
<ins>beautiful</ins> city of Aix-en-Provence.
</p>
ins
= inserted
The <ins>
tag marks inserted text with an underline.
This tag is commonly used with the <del> tag which marks deleted text.
Both are designed to track document changes.
An <ins>
tag with a custom styled red underline.
Van Gogh was a Dutch post-impressionist painter.
<p>
Van Gogh was a Dutch
<ins style="text-decoration-color: red;">post-impressionist</ins>
painter.
</p>
For details on the <del> tag, see our HTML del Tag Reference.
This table lists the <ins>
tag attributes.
Attribute | Value | Description |
---|---|---|
datetime | date-time |
Specifies the date and time the text was inserted. Enter this format: YYYY-MM-DDThh:mm:ssTZD. |
cite | URL | References a document that shows why the text was inserted. |
id | identifier | Defines a unique identifier for the element. |
class | classnames | Sets one or more CSS classes to be applied to the element. |
style | CSS-styles | Sets the style for the element. |
For additional global attributes see our Global Attributes List.
The <ins>
tag is part of a group of tags
that are used to create and format text documents.
This group is referred to as the Text tag group.
Together, they allow you to create comprehensive HTML text documents.
Here is a list of text tags.
Element | Description |
---|---|
<h1>-<h6> | Defines text headings in 6 different sizes |
<p> | Creates a paragraph |
<span> | Container for one or more inline text elements |
<br> | Creates a line break |
<sup> | Specifies superscript text |
<sub> | Specifies subscripted text |
<u> | Specifies underlined text |
<i> | Specifies italic text |
<b> | Specifies bold text |
<em> | Marks text that needs emphasis |
<strong> | Indicates text that is important or with high urgency |
<del> | Defines deleted text |
<ins> | Defines inserted text |
<ruby> | Represents a small annotation with pronunciation of text |
<kbd> | Specifies keyboard input, such as, CTRL or ALT |
<wbr> | Specifies a preferred word-break location for long words |
Here is when <ins>
support started for each browser:
Chrome
|
1.0 | Sep 2008 |
Firefox
|
1.0 | Sep 2002 |
IE/Edge
|
1.0 | Aug 1995 |
Opera
|
1.0 | Jan 2006 |
Safari
|
1.0 | Jan 2003 |