font-awesome 4.7 icons 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: font awesome icons

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

Example 3: fontawesome 4.7 icon

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

Example 4: fa icons

<script src='https://kit.fontawesome.com/a076d05399.js'></script>

Example 5: release icon font awesome

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

Example 6: font awesome icon

<head>
  <link href="/your-path-to-fontawesome/css/all.css" rel="stylesheet"> <!--load all styles -->
</head>
<body>
  <i class="fas fa-user"></i> <!-- uses solid style -->
  <i class="far fa-user"></i> <!-- uses regular style -->
  <i class="fal fa-user"></i> <!-- uses light style -->
  <!--brand icon-->
  <i class="fab fa-github-square"></i> <!-- uses brands style -->
</body>

Tags: