skip to Main Content

I tried using <i class="fa-brands fa-github"></i> to insert the github icon into my work but it didn’t show. How do I achieve this? Please I need help as soon as possible so that I can finish and submit an assignment I was given. Thanks.

2

Answers


  1. You have two options:

    1. The way Font Awesome wants you to do it is create a unique kit on their website, and then they’ll give you the code to include the kit in your project.

    2. A simpler way is simply to reference Cloudflare’s CDN distribution of it, as per this answer.

    Login or Signup to reply.
  2. First, make sure you include Font Awesome Css correctly.
    Here is how you can achieve it.

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

    Then, you can insert github icon easliy using below code.

    <i class="fab fa-github"></i>
    

    If you are working in React, make sure to change "class" to "className".

    <i className="fab fa-github"></i>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search