how to add clickable icon in html

Solutions on MaxInterview for how to add clickable icon in html by the best coders in the world

showing results for - "how to add clickable icon in html"
Ismail
10 Apr 2016
1<!-- Add icon library -->
2<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
3
4<!-- Add font awesome icons to buttons  -->
5<p>Icon button:</p>
6<button class="btn"><i class="fa fa-home"></i></button>
7
8<p>Icon button with text:</p>
9<button class="btn"><i class="fa fa-home"></i> Home</button>