Quick exploration of icon svg fonts for rapidly generating iconography in graphs. See the examples live on bl.ocks
This is the standard solution. The one adopted by popular icon fonts like font awesome.
Each icon is mapped onto a unique unicode character.
<i class="icon-cycle_annual"></i>
As it is pretty impossible to remember the mapping between each icon and its associated unicode character, they are declared in the css file.
.icon-cycle_annual:before { content: '\e064'; }
Tools like svg-font-create manage the automatic generation of the css mapping whenever a new font is generated.
<i class="icon-cycle_annual"></i> <i class="icon-cycle_biennial"></i> <i class="icon-cycle_perennial"></i>
Not clear wether this is legit or not, but it is possible to declare more than one character in the unicode attribute.
A benefit of this is that it is then possible to bypass the declaration of the glyph-to-code mapping in the css file.
Two downsides, though.
<i class="icon-cycle">{annual}</i> <i class="icon-cycle">{biennial}</i> <i class="icon-cycle">{perennial}</i>
Once we decide to use multiletter codes for glyph identification, there is no real motivation for using the custom tag anymore. Codes can be embedded in any span or division with limited markup.
Useful or dangerous?
<span class="font-test">{annual} {biennial} {perennial}</span>