HTML <ins> tag

Definitie en gebruik

<ins> De tag definieert de tekst die is ingevoegd in het document. Browsers voegen meestal een onderstrepingstekst toe onder de ingevoegde tekst.

Tip:Raadpleeg <del> Gebruik samen om updates en correcties in de documenten te beschrijven.

Zie ook:

HTML DOM referentiemanual:Ins object

Voorbeeld

Voorbeeld 1

Bevat tekst met verwijderde en nieuwe ingevoegde delen:

<p>Mijn favoriete kleur is <del>blauw</del><ins>rood</ins>!</p>

Try it yourself

Voorbeeld 2

Gebruik CSS om de stijl van <del> en <ins> in te stellen:

<html>
<head>
<style>
del {achtergrondkleur: tomatenrood;}
ins {achtergrondkleur: geel;}
</style>
</head>
<body>
<p>Mijn favoriete kleur is <del>blauw</del><ins>rood</ins>!</p>
</body>
</html>

Try it yourself

Attribute

Attribute Value Description
cite URL Specifies the URL of the document that explains the reason for inserting or changing the text.
datetime YYYY-MM-DDThh:mm:ssTZD Specifies the date and time when the text is inserted or changed.

Global attributes

<ins> The tag also supports Global attributes in HTML.

event attributes

<ins> The tag also supports Event attributes in HTML.

Default CSS settings

Most browsers will display the following default values <ins> Element:

ins {
  text-decoration: underline;
}

Try it yourself

Browser support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support