HTML <ins> tag
The <ins> tag is a way to define an inserted text in HTML document.
Browsers usually underlines inserted text to show that it is an inserted text.
Syntax:
<ins> text…</ins>
<del> tag with <ins> tag
The <del> tag is a way to define a deleted text.
In the examples below, first the text is deleted using the <del> tag and a new text is inserted using the <ins> tag.
Default CSS Value
text-decoration: underline;
How Browser will display
INLINE.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
No difference | NA | No difference |
Attributes used with <ins> tag
Attribute | Description |
---|---|
cite | This defines a URL to another document. This target URL is a page which can show the reason why text was deleted/inserted/quoted. |
datetime | This shows the date with time when the text was inserted or modified. The format of the datetime is YYYY-MM-DDThh:mm:ssTZD. |
Note/Warning/Danger/Info/Success It is better to use the <del> tag with the <ins> element.
Show the deleted text using the <del> tag followed by the inserted text using the <ins> tag.
Show the deleted text using the <del> tag followed by the inserted text using the <ins> tag.
Global Attributes
The <ins> tag supports Global attributes.
Event Attributes
The <ins> tag supports Event attributes.
Supporting Browsers
Related Tags
<del> tag.