HTML <ins> Tag

Topic: HTML5 Tags Reference« Prev|Next »

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
 

Tip: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.

Attribute Value Description
cite URL Specifies the URL of the document or message which explains the reason for the change in content.
datetime YYYY-MM-DDThh:mm:ssTZD Specifies the date and time when the change was made.

Global Attributes

Like all other HTML tags, the <ins> tag supports the global attributes in HTML5.


Event Attributes

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


Browser Compatibility

The <ins> tag is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox 1+
  • Google Chrome 1+
  • Internet Explorer 4+
  • Apple Safari 1+
  • Opera 4+

Further Reading

See tutorial on: HTML Text Formatting.

Related tag: <del>.

 
Close

Your Feedback:

 

We would love to hear from you! Please say something.