Fontawesome icons in Web 2.0: Newbie

I have managed to make it work in two ways:

  1. Copying the SVG code and pasting it into a WebImageViewer object.

  2. Following the example of Lars Lehmann who uses javascript

I find both options very laborious compared to the simple line of code I had to write before.
I’m sure there’s a simpler way but I can’t get it.

Suggestions?