English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
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 ‹/›
IEFirefoxOperaChromeSafari
All mainstream browsers support the <ins> tag.
<ins> tag defines text that has been inserted into the document.
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 | Value | Description |
---|---|---|
cite | URL | Specify the URL of the document, which explains the inserted/Reason for changing the text |
datetime | YYYY-MM-DDThh:mm:ssTZD | Specify the date and time when the text was inserted. |
Support for <ins> tag Global attributes of HTML.
Support for <ins> tag HTML event attributes.