fontawesome fonts code example

Example 1: font awesome

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.1/css/all.css" integrity="sha384-vp86vTRFVJgpjF9jiIGPEEqYqlDwgyBgEF109VFjmqGmIY/Y4HV4d3Gp2irVfcrp" crossorigin="anonymous">

Example 2: fontawesome

Make sure to put this just before the </body> tag!

<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js"></script>

Example 3: fontawesome , font

$ npm install @fortawesome/fontawesome-svg-core
$ npm install @fortawesome/free-solid-svg-icons
# See Compatibility table below to choose a correct version
$ npm install @fortawesome/angular-fontawesome@<version>

Example 4: fontawesome

<i class="fa fa-linkedin" aria-hidden="true"></i>

Example 5: 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.

Example 6: fontawesome

<i class="fa fa-ellipsis-v" aria-hidden="true"></i>

Tags:

Html Example