Sam Mullinix Sam Mullinix - 1 year ago 30
CSS Question

I've linked an Awesome Fonts logo to another website in HTML but it wants to look in my website directory and not link directly to the URL?

So at the bottom of my website I have a social media section that links to each of my social media accounts. I have gotten three of them to work using the Awesome Fonts CDN. But my fourth one refuses to cooperate and I don't know why.

<a href=""><i class="fa fa-github"></i></a>

This bit of HTML will link the github icon to my github account perfectly fine. But when I want the linked in logo to work using the following code-

<a href=""><i class="fa fa-linkedin"></i></a>

I get

Not Found

The requested URL /“INSETURLHERE†was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to...

Oddly enough when I mouse over the logo (which does show up) it tells me it is trying to direct me to

Why would the last link using the exact same syntax want to search my website for that page, when the other links work just fine? Any help would be much appreciated!

Answer Source

A link tag's href attribute needs to be prefixed by // or http:// in order to tell a browser to look outside of your domain.

The primary issue was that the href was using "smart" quotes instead of standard quotes.