HTML Annotation Techniques

A survey of possible methods to annotation HTML elements with additional data. In this case populations values which Javascript code will read in order to draw a horizontal bar graph.

All the various contortions and trickeries in the first 10 examples are now obsolete, because the standard DOM dataset property used in the 11th example now works as advertised.

Auxiliary files:

(Note: source code views were generated using Pygments.)