English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag大全

HTML: <ins> tag

The HTML <ins> tag is used to insert new text into the document that has been inserted, to display the history of document changes. The text found in the <ins> tag is usually presented as underlined text by the browser. You can use the accompanying <del> tag to mark text that has been deleted from the document but retained to display the history of document changes. This tag is also commonly referred to as the <ins> element.

Online Example

A text with deleted and inserted parts:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>Basic Tutorial(oldtoolbag.com)</title> 
</head>
<body>
<p><ins cite="//www.oldtoolbag.com">This text has been inserted</a>/ins> but this text has not.</ins>/p>
<p>My favorite color is <del>blue</del>/del> <ins>red</ins>!</p>
</body>
</html>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers support the <ins> tag.

Tag definition and usage instructions

<ins> tag defines text that has been inserted into the document.

Tips and Notes

Tip:You can also check out the tags that mark deleted text <del> tag.

Tip:Used together with <del> and <ins>, to describe updates and corrections in the document. Browsers usually add a line through the deleted text and add an underline under the newly inserted text.

<ins> tag is used to track changes to the document and highlight the text inserted into the document. The <ins> tag can also be used in difference tools to display added source code.

Attribute

  Specify the URL of the document, which explains the inserted/Reason for changing the text
AttributeValueDescription
citeURLSpecify the URL of the document, which explains the inserted/Reason for changing the text
datetimeYYYY-MM-DDThh:mm:ssTZDSpecify the date and time when the text was inserted.

Global attributes

Support for <ins> tag Global attributes of HTML.

Event attributes

Support for <ins> tag HTML event attributes.