FAQ: Font Awesome - Link Font Awesome

This community-built FAQ covers the “Link Font Awesome” exercise from the lesson “Font Awesome”.

Paths and Courses
This exercise can be found in the following Codecademy content:

FAQs on the exercise Link Font Awesome

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Why does the link to awesome font have to come before the link to stylesheet?

1 Like

@microace27095, I had the same question in mind. Please check out this answer that I found on Stackoverflow. I hope it is satisfactory.

2 Likes

Ugh thanks so much, I was completely lost.

Exercise says: " When linking to a CDN, we recommend using the Bootstrap CDN, which hosts a copy of the Font Awesome library."
However, when you go to the CDN, the HTML code is different than what is used in the example of CodeCademy.
CDN:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css" integrity="sha384-jLKHWM3JRmfMU0A5x5AkjWkw/EYfGUAGagvnfryNV3F9VqM98XiIH7VBGVoxVSc7" crossorigin="anonymous">

CodeCademy:

<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css">

Furthermore, if you copy the code from the CDN, my site does not work but if I copy the code in CodeCademy it does work.
What is wrong?

2 Likes