CSS Icons
Icons can easily be added to your HTML page, by using an icon library.
How To Add Icons
The easiest way to put an image on your webpage is by using something called an icon library, like Font Awesome.
You can include a particular icon style by adding the class name to any HTML element(like <i>
or
<span>
).
All the icons in the collections of icons displayed below are like flexible drawings. You can change their appearance using CSS (size, color, shadow, etc.)
Font Awesome Icons
To use the Font Awesome icons, go to
fontawesome.com, sign in, and get a code to add in the <head>
section of your HTML page:
<script src="https://kit.fontawesome.com/yourcode.js" crossorigin="anonymous"></script>
Note: No downloading or installation is required!
Bootstrap Icons
To make Bootstrap glyphicons work on your HTML page, simply insert this line into the <head>
part of your HTML code:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
Note: No downloading or installation is required!
Google Icons
To use Google icons, add the below line in the <head>
part of your HTML page:
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
Note: No downloading or installation is required!