0

I am making a simple HTML webpage, I am trying to add an icon in the browser tab, I can get the icon to appear if I use a picture from online. However when I try to use a local file the icon is not visible. Here is what I used to try and embed the icon

<link rel="icon" href="/icon.ico">

Any help is appreciated, thanks

Ellis
  • 105
  • 2
  • 10

1 Answers1

1

Your code works in recent Firefox.

Maybe the problem is that leading slash in the path makes browser search it in server root directory?

<link rel="icon" type="image/vnd.microsoft.icon" href="icon.ico" />
kay27
  • 897
  • 7
  • 16
  • I have tried changing that. As well as just using the full file path, and using the server IP with /icon.ico at the end – Ellis Feb 12 '16 at 22:27