<ins> Tag Examples

Examples of the ins tag in HTML 5
<p>... <ins datetime="2010-10-31">added to paragraph on Halloween 2010</ins> ...</p>

<ins datetime="2010-11-30T23:59-05:00"><p>This entire paragraph was
   added just before midnight Eastern time on the last day of November.
</p></ins>

<p>... <ins datetime="2010-10-31">This is just one reason for
   always using the &lt;p&gt; tag for paragraphs in HTML.</ins>
</p>
<p><ins datetime="2010-10-31">Another reason is that it</ins>
   <del>Using the &lt;p&gt; tag</del>
   is highly recommended by the HTML specifications, which says
   <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/edits.html#edits-and-paragraphs">
      "authors are strongly encouraged to always mark up all paragraphs with the p element"</a>.
</p>

The last example includes a deletion using HTML editing code and also shows that a single <ins> tag cannot be used to mark up part of one paragraph along with another paragraph since that would result in mismatched tags. Two <ins> tags need to be used for that. This rule applies even if the <p> tags for one of the paragraphs were implied rather than coded explicitly.

Inserting List Items in HTML 5

A new list item inserted into an HTML list is indicated by coding the <ins> tag inside the <li> tag:

<ul>
<li>original list item</li>
<ins><li>new list item</li></ins>
<li><ins>new list item</ins></li>
</ul>