How to use font awesome icons in bootstrap 4?

Hi Friends 👋,

Welcome To aGuideHub! ❤️

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

To use Font Awesome icons, add the following to your HTML page (No downloading or installation is required):

<link rel="stylesheet" href="" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">

Then, add the name of the icon class to any inline HTML element (like <i> or <span>):


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

<!DOCTYPE html>
<html lang="en">
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="">
  <link rel="stylesheet" href="" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous"></head>
  <script src=""></script>
  <script src=""></script>
  <script src=""></script>

<div class="container">  
  <h1>My Icons <i class="fa fa-cloud"></i></h1>
  <p>An icon along with some text: <i class="fas fa-thumbs-up"></i></p> 
<div class="container">
  <i class="fas fa-cloud"></i>
  <i class="fas fa-band-aid"></i>
  <i class="fas fa-car"></i>
  <i class="fas fa-file"></i>
  <i class="fas fa-clock"></i>


Check the output of the above code example.

Bootstrap, Font, Awesome, 4

All the best 👍