Answers for "how to add clickable icon in html"

0

how to add clickable icon in html

<!-- Add icon library -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<!-- Add font awesome icons to buttons  -->
<p>Icon button:</p>
<button class="btn"><i class="fa fa-home"></i></button>

<p>Icon button with text:</p>
<button class="btn"><i class="fa fa-home"></i> Home</button>
Posted by: Guest on August-23-2021

Browse Popular Code Answers by Language