1<link rel="shortcut icon" href="http://sstatic.net/stackoverflow/img/favicon.ico">
2
1<link rel="shortcut icon" href="path to icon/name of icon.ico" type="image/x-icon" />
1<!DOCTYPE html>
2<html>
3<head>
4<meta name="viewport" content="width=device-width, initial-scale=1">
5<!-- Add icon library -->
6<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
7<style>
8.btn {
9 background-color: DodgerBlue;
10 border: none;
11 color: white;
12 padding: 12px 16px;
13 font-size: 16px;
14 cursor: pointer;
15}
16
17/* Darker background on mouse-over */
18.btn:hover {
19 background-color: RoyalBlue;
20}
21</style>
22</head>
23<body>
24
25<h2>Icon Buttons</h2>
26<p>Icon buttons:</p>
27<button class="btn"><i class="fa fa-home"></i></button>
28<button class="btn"><i class="fa fa-bars"></i></button>
29<button class="btn"><i class="fa fa-trash"></i></button>
30<button class="btn"><i class="fa fa-close"></i></button>
31<button class="btn"><i class="fa fa-folder"></i></button>
32
33<p>Icon buttons with text:</p>
34<button class="btn"><i class="fa fa-home"></i> Home</button>
35<button class="btn"><i class="fa fa-bars"></i> Menu</button>
36<button class="btn"><i class="fa fa-trash"></i> Trash</button>
37<button class="btn"><i class="fa fa-close"></i> Close</button>
38<button class="btn"><i class="fa fa-folder"></i> Folder</button>
39
40</body>
41</html>
1<html>
2<head>
3
4 <script src="https://kit.fontawesome.com/yourcode.js"></script>
5
6 <!--Get your code at fontawesome.com-->
7</head>
8<body>
9