Highlighting Changes: del and ins tags [13/17]
Any document on the Web has its "lifecycle". As Web apps gain more dynamics, modifying of HTML documents becomes easier than ever.
Sometimes we wonder, what exactly has changed in a document? What particularly has been added to it or removed from it?
For this purpose, HTML offers two tags,
<del> tag represents a removal from the document.
<ins> tag represents an addition to the document.
Both tags have the
datetime attribute to set the date and time of a revision.
A simple and intuitive example of such tags is a list of errors. When an error is fixed, it is tagged by
<del>. If a new error has been found, it is added to the list and tagged by
datetimeattribute is intended for computers rather than for people, so date and time is specified in a standardized format. Such markup makes it easier for a program to analyze document changes.
- Use the
deltag to mark one more error as fixed
- and the
instag to mark another error as newly added.