HTML: The Ins Tag

HTML ins tag

The <ins> tag is used to note where content has been added to a document.

This tag is for controlling the changes in the versioning of a document. It gives semantic and visual styling with an underline of the change that was made.

In the code below, we made a mistake for Mary. She didn’t have a lamb, but a little lamb. So if we want to keep all version information in the document for historical purposes, we use the <ins> tag to surround the content that is to be added.

The <ins> tag can take two optional attributes:

cite – a http reference to a document URI that describes the change
datetime – a timestamp of when we made the change (YYYY-MM-DDTHH:MM:SS format)

Example Code:

  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <title>The Ins Tag | Kobashi Computing</title>
  5.   </head>
  6.   <body>
  7.     <main>
  8.       <p>Mary had a <ins cite="" datetime="2016-08-24T02:12:48">little</ins> lamb.</p>
  9.     </main>
  10.   </body>
  11. </html>

Of Interest