how to use font awesome in bootstrap code example

Example 1: how to implement font awesome in html

<link
      rel="stylesheet"
      href="https://use.fontawesome.com/releases/v5.13.0/css/all.css"
      integrity="sha384-Bfad6CLCknfcloXFOyFnlgtENryhrpZCe29RTifKEixXQZ38WheV+i/6YWSzkz3V"
      crossorigin="anonymous"
    />

Example 2: link to font awesome

<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">

Example 3: how to use fontawesome with bootstrap

To use fontawesome icons with bootstrap it is very simple:

This is the default: <i class="fas fa-shopping-basket"></i>

With bootstrap it needs to be: <i class="fa fa-shopping-basket"></i>

fas should be changed to fa.

Tags:

Css Example