What are the <ins> and <del> tags used for?
What are the
<del> tags used for and does anyone really use them?
<ins> (for insert) and
<del> (for delete) tags are used to track changes in a document. They are rarely used tags, but could be useful as part of content management system or similar tool.
Both tags take a
datetime attribute that takes a value in the form of:
See https://www.w3.org/TR/NOTE-datetime for details on that datetime format.
Here's a simple example of how you might use
<p>Mike and <del datetime="2016-06-14T15:28:03+05:00" cite="http://www.grammarbook.com/grammar/pronoun.asp">me</del> <ins datetime="2016-06-14T15:28:03+05:00">I</ins> went to the movies last night.</p>
cite attribute doesn't have any effect on the display of the content. It really just serves as a comment for the coders. Most browsers will put a line though content in
<del> tags and underline content in
<ins> tags, like this:
Do these ever actually get used? Well, Google uses the
<ins> tag on its 404 page, but we're not really sure why.