HTML5 <ins> Tag

The HTML <ins> tag is used to represent a range of text that has been added to a document.

The only content permitted inside this element is Transparent i.e., content whose tags can be removed from a valid HTML while still keeping it valid. Both the starting and ending tag are mandatory for this element. The parent of the <ins> tag can be any element that accepts phrasing content.

One important thing that you should keep in mind is that <ins> elements should not cross implied paragraph boundaries.

The following style is applied to this element by default:

ins {
  text-decoration: underline;
}

Here is an example of using this tag:

<p>Apple is a great fruit. <ins>I have liked apples since I was a child.</ins></p>

Attributes

cite

This attribute defines the URI of a resource that explains the change, such as a link to meeting minutes or a ticket in a troubleshooting system.

datetime

This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp.

Examples

See the Pen HTML ins Tag by Tutorialio (@tutorialio) on CodePen.

Further Reading

  1. Read more about the HTML <ins> element on MDN.
  2. You can also read the HTML <ins> tag reference on W3C.

Reader Comments

1. You can register or login to post a comment. Asking readers to register improves the quality of discussion.

2. As a registered user, you will also get to access features like choosing between a light and dark theme or anything else that we might implement in future.

Follow Us For Updates

FacebookTwitterGoogle+
Go To Top