The easiest way to set up icon fonts for use in any web page is through Google Web Fonts. All you need to do is include a single line of HTML:
Then, it’s easy to incorporate icons into your web page. Here’s a small example:
This example uses a typographic feature called ligatures, which allows rendering of an icon glyph simply by using its textual name. The replacement is done automatically by the web browser and provides more readable code than the equivalent numeric character reference. This feature is supported in most modern browsers on both desktop and mobile devices.
For browsers that do not support ligatures, fall back to specifying the icons using numeric character references like the example below:
For all available icons, please refer to Material icons library.