English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML <ins>-Tag wird verwendet, um neu in das Dokument eingefügte Texte anzuzeigen, um die Änderungsgeschichte des Dokuments anzuzeigen. Normalerweise wird der Text im <ins>-Tag von Browsern als unterstrichener Text dargestellt. Sie können das Begleit-Tag <del> verwenden, um Texte zu kennzeichnen, die aus dem Dokument gelöscht wurden, aber behalten wurden, um die Änderungsgeschichte des Dokuments anzuzeigen. Dieses Tag wird auch als <ins>-Element bezeichnet.
Ein Text mit gelöschtem und neu eingefügtem Teil:
!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Grund教程(oldtoolbag.com)</title> </head> <body> <p><ins cite="//de.oldtoolbag.com">Dieser Text wurde eingefügt</ins> aber dieser Text hat nicht.</p> <p>Meine favorisierte Farbe ist <del>blau</del> <ins>rot</ins>!</p> </body> </html>Test to see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the <ins> tag.
<ins> Tag defines text that has been inserted into the document.
Tip:You can also see the tags that indicate deleted text <del> Tag.
Tip:Use <del> and <ins> together to describe updates and corrections in the document. Browsers typically add a strikethrough to deleted text and an underline to newly inserted text.
<ins> Tag is used to track changes to the document and highlight text inserted into the document. The <ins> tag can also be used in diff tools to display added source code.
Attribute | Value | Description |
---|---|---|
cite | URL | Specify the URL of the document, which explains the insertion/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.