HTML tag <ins>
Příklad
Text s odstraněnou částí a novou vloženou částí:
<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>
Definice a použití
Značka <ins>
definuje text, který byl vložen do dokumentu. Prohlížeče obvykle vložený text podtrhnou.
Tip: Chcete-li označit smazaný text, podívejte se také na značku <del> .
Podpora prohlížeče
Element | |||||
---|---|---|---|---|---|
<ins> | Yes | Yes | Yes | Yes | Yes |
Atributy
Attribute | Value | Description |
---|---|---|
cite | URL | Specifies a URL to a document that explains the reason why the text was inserted/changed |
datetime | YYYY-MM-DDThh:mm:ssTZD | Specifies the date and time when the text was inserted/changed |
Globální atributy
Značka <ins> také podporuje globální atributy v HTML .
Atributy události
Značka <ins>
také podporuje atributy událostí v HTML .
Další příklady
Příklad
Ke stylování <del> a <ins> použijte CSS:
<html>
<head>
<style>
del {background-color:
tomato;}
ins {background-color: yellow;}
</style>
</head>
<body>
<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>
</body>
</html>
Související stránky
Odkaz HTML DOM: Objekt Ins
Výchozí nastavení CSS
Většina prohlížečů zobrazí <ins>
prvek s následujícími výchozími hodnotami:
Příklad
ins {
text-decoration: underline;
}