Named/Tagged Versions:Version by Dates
  1. Gerry Giraffe
  2. Kramer Koala


Version Control for HTML

About

This webpage is a demonstration of the built-in version control capabilities for HTML. The INS and DEL tags are used along with the cite and datetime attributes to indicate why and when something changed.

This is all very primitive and requires some additional work to turn into a coherent version control system. Ordinarily, web browsers will display the DEL element as struck-out text. What we do here is to instead hide that text and only display it when you want to see the diff.

All the stuff in red is not deleted yet. All the stuff in green is already inserted.

In Which I Speak Of Mad Hackery

A single HTML document will contain many versions within it. A version of the document is selected by selecting particular cite URLs or selecting all insertions/deletions between a particular date/time range, or by using a "tag". The "tag" is located in the class attribute of the INS or DEL element and can be used to specify names for versions. For example, if Gerry Giraffe is the name of version 23, then the attribute will be set to gerry or something else.

This paragraph here, for example, has been set to be added later and has been tagged with a specific version name. Its name is KatKramer.

This paragraph was created in the initial draft, before the last one (this is just a demonstration so all the drafts are made up, but play along please).