include font awesome in css code example

Example 1: how to import fontawesome

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

Example 2: add icon font awesome

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

Example 3: install font awesome

npm install --save @fortawesome/fontawesome-free
$fa-font-path:        "../webfonts";
@import "~@fortawesome/fontawesome-free/scss/fontawesome.scss";
@import "~@fortawesome/fontawesome-free/scss/solid.scss";
@import "~@fortawesome/fontawesome-free/scss/brands.scss";
@import "~@fortawesome/fontawesome-free/scss/regular.scss";
please email me [email protected] if you have any issues.

Example 4: link to font awesome

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

Tags:

Css Example