Contents
HTML ins: Main Tips
- The HTML
<ins>
tag marks texts added to web pages. - <del> is an opposite element of
<ins>
HTML since it marks the deleted content.
Use and Purpose of ins
HTML <ins>
defines an inserted text in a document.
<h2>The movie scheduled to be released on <del>April 2017</del> <ins>July 2017.</ins></h2>
Note: web browsers normally add the text-decoration CSS property with a value of line-through for deleted text and a value of underline for inserted text.
Attributes Used With ins
cite
It defines a web location, containing the reason for adding the inserted text.
<h2>The movie scheduled to be released on <del>April 2017.</del> <ins cite="production-house-news-july-2017.html">July 2017.</ins></h2>
datetime
It defines date and time when the text was added.
<h2>The movie scheduled to be released on <del>April 2017.</del> <ins datetime="2017-07-15T21:30:00Z">July 2017.</ins></h2>