Documenting Changes

Contact Us or call 1-877-932-8228
Documenting Changes

Documenting Changes

Sometimes it is necessary to document changes in your HTML pages. This is especially common when drafting legal documents. The specification provides <ins> and <del> elements for documenting inserted and deleted content, respectively. Both elements take a cite attribute for pointing to a resource explaining the change and a datetime attribute for indicating the time and date of the change. The format for datetime is YYYY-MM-DDThh:mm:ssTZD. The title attribute can also be used to indicate a short reason for the change. The example below shows how they are used:

Code Sample:

<meta charset="UTF-8">
<title>Change Tracking</title>
<h1>Change Tracking</h1>
<p>The baseball player with the most home runs is <del datetime="2007-08-01" cite="" title="Not anymore">Hank Aaron</del><ins datetime="2007-08-07" cite="" title="Steroids?">Barry Bonds</ins>.</p>

The page is rendered as follows. The title text shows up when the user hovers the mouse over the text "Hank Aaron.":

Hover over "Hank Aaron" to see the effect below:

The baseball player with the most home runs is Hank AaronBarry Bonds.