Solution 1 :

You can write something like this using html tag,

<a href="Your facebook link"><i class="fab fa-facebook"></i></a>

Solution 2 :

Font awesome does not care if icons are set in <i> tags, use <a> instead of <i>

<a href="FB Link" class="fab fa-facebook"></a>

Problem :

I made a site for myself for the first time and added icons to share my social media pages, I don’t know how to add links to icons. I would be glad if you could help.

Html:

    <i class="fab fa-facebook"></i>
    <i class="fab fa-instagram"></i>
    <i class="fab fa-twitter"></i>
    <i class="fab fa-google"></i>
    

Comments

Comment posted by Justinas

Change

Comment posted by w3schools.com/tags/att_a_href.asp

you can add tag begging of tag like that: take look at this link

Comment posted by anchor

Try using

Comment posted by DBS

I would suggest working through some basic HTML tutorials, one of the many free beginner courses you can find online will save you a lot of time in the long run. (Feel free to ask here if you get stuck, but try to do a bit of research yourself first)

By