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

HTML Referenzhandbuch

HTML-Tag-Übersicht

HTML: <ins> Tag

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.

Online-Beispiel

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 ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the <ins> tag.

Description and Usage of Tag

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

Tips and Notes

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

  Specify the URL of the document, which explains the insertion/Reason for changing the text
AttributeValueDescription
citeURLSpecify the URL of the document, which explains the insertion/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.