How to fix Font Awesome is not showing icon with HTML?

Spread the love

Sometimes, we want to fix Font Awesome is not showing icon with HTML.

In this article, we’ll look at how to fix Font Awesome is not showing icon with HTML.

How to fix Font Awesome is not showing icon with HTML?

To fix Font Awesome is not showing icon with HTML, we make sure we add the right classes for the icon.

For instance, we write

<a class="nav-link" href="//www.facebook.com/" target="_blank">
  <i class="fab fa-facebook-f"></i>
</a>

to add the fab and fa-facebook classes to display the Facebook icon.

Conclusion

To fix Font Awesome is not showing icon with CSS, we make sure we add the right classes for the icon.

Leave a Reply

Your email address will not be published. Required fields are marked *