Home > Blockchain >  Why aren't my font awesome icons showing?
Why aren't my font awesome icons showing?

Time:11-02

The code

Output

Could you please tell me what I've done wrong in my code because for some odd reason i can't see the icon.

CodePudding user response:

You need a kit code replacing the yourcode.js. To get a kit code, sign up an account on fontawesome.com.

Or, you can change the link to https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/js/all.min.js.

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/js/all.min.js"></script>
</head>

<body>
  <i class="far fa-clock"></i>
</body>

</html>
<iframe name="sif1" sandbox="allow-forms allow-modals allow-scripts" frameborder="0"></iframe>

  • Related