Chris on Code
This tutorial is out of date and no longer maintained.
Icon fonts are great tools for building applications and websites nowadays. They have a great many benefits over fixed-sized icons like:
These are simple benefits, but so powerful when used in a real-world application.
Icon fonts are incredibly easy to use. All you have to do is load the CSS file and you’re good to go!
For example, in order to use FontAwesome fonts, we just have to load the CSS file and apply the appropriate classes to either an <i>
or <span>
tag.
<!-- load the CSS file -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<!-- use the icon font -->
<!-- use i or span tag -->
<i class="ti-fire"></i>
<span class="ti-user"></span>
Let’s get into the best icon fonts you can use for your projects today.
Bonus: SVG Developer Icons by Scotch
All these sets of icons are unique in their own way. Mix and match them as you create your own customized application or website.
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!