Description

The <ins> (short for inserted) tag specifies a block of inserted text. This tag is typically used to markup a range of text that has been added to the document. Browsers will normally render the inserted text as underlined text, however you can overwrite this using the CSS text-decoration property.

The following table summarizes the usages context and the version history of this tag.

Placement:Block or inline, depending on the content
Content:Any block, inline, and text (but cannot contain block content when used as an inline element)
Start/ End Tag:Start tag: required, End tag: required
Version:HTML 4, 4.01, 5

Note: Also look at the counterpart of <ins> tag; the <del> tag, which is used to markup the deleted text in a document. Use these elements to markup updates and modifications in your document.

Syntax

The basic syntax of the <ins> tag is given with:

HTML/XHTML: <ins datetime="datetime"> ... </ins>

The example below shows the <ins> tag in action.

<h1>To Do</h1>
<ul>
    <li>Buy some cookies</li>
    <li><ins>Do some cleaning</ins></li>
    <li><del>Relaxation time</del></li>
    <li><ins>Visit a doctor</ins></li>
</ul>

Tag-Specific Attributes

The following table shows the attributes that are specific to the <ins> tag.

Global Attributes

Like all other HTML tags, the <ins> tag supports the glodelal Attributes in HTML5.

Event Attributes

The <ins> tag also supports the event Attributes in HTML5.

Browser Compatibility

Element
<i>YesYesYesYesYes