How to use awesome fonts in bootstrap?

Hi Friends 👋,

Welcome To aGuideHub! ❤️

Today, I am going to show you. How to use awesome fonts in bootstrap with code example.

To use the Font Awesome icons, add the following line inside the section of your HTML page:

<link rel="stylesheet" href="">

Note: No downloading or installation is required!

You place Font Awesome icons by using the prefix fa and the icon’s name.

Font awesome is designed to be used with inline elements. The <i> and <span> elements are widely used for icons.


Let’s look at the following example to understand how it basically works:

<!DOCTYPE html>

        <title>Font Awesome Icons</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="">
        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <!-- Latest compiled and minified JavaScript -->
        <script src="" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>


        <i class="fa fa-car"></i>
        <i class="fa fa-car" style="font-size:48px;"></i>
        <i class="fa fa-car" style="font-size:60px;color:red;"></i>



Also note that if you change the font-size or color of the icon’s container, the icon changes. Same things goes for shadow, and anything else that gets inherited using CSS.

In the above code, we have used .fa class to awesome fonts in bootstrap

Check the output of the above code example.

Bootstrap, Use, Awesome, Fonts

All the best 👍