HTML <ins> Tag


Exemplo

Um texto com uma parte excluída e uma nova parte inserida:

<p>My favorite color is <del>blue</del> <ins>red</ins>!</p>

Definição e uso

A <ins>tag define um texto que foi inserido em um documento. Os navegadores geralmente sublinham o texto inserido.

Dica: Observe também a tag <del> para marcar o texto excluído.


Suporte ao navegador

Element
<ins> Yes Yes Yes Yes Yes

Atributos

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

Atributos Globais

A tag <ins> também suporta os Atributos Globais em HTML .


Atributos do evento

A <ins>tag também suporta os atributos de evento em HTML .



Mais exemplos

Exemplo

Use CSS para estilizar <del> e <ins>:

<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>

Páginas relacionadas

Referência HTML DOM: Objeto Ins


Configurações padrão de CSS

A maioria dos navegadores exibirá o <ins>elemento com os seguintes valores padrão:

Exemplo

ins {
  text-decoration: underline;
}