Use of Font Awesome Library through HTML & CSS

How to use Font Awesome library to make Icon buttons through HTML and CSS?

Last updated:7/20/2021 1:18:33 AM

1 Answers

Ethan Karla
Ethan Karla

Font Awesome gives you scalable vector icons that can instantly be customized — size, color, drop shadow, and anything that can be done with the power of CSS.

So, Let's use it with the help of an example :

<!DOCTYPE html>

    <meta name='viewport' content='width=device-width, initial-scale=1'>
    <link rel='stylesheet' href=''>
    <h2>Font Icons</h2>
    <i class='fa fa-bomb'></i>
    <i class='fa fa-bomb' style='font-size:50px;'></i>
    <i class='fa fa-bomb' style='font-size:80px;color:grey;'></i>

Hope this code will be helpful for you.

Happy Coding!