html Website Icon, simple stuff, Website icon tab is being ignored |
html Website Icon, simple stuff, Website icon tab is being ignored |
zomboy |
Jul 9 2012, 03:41 PM
Post
#1
|
Group: Members Posts: 2 Joined: 9-July 12 Member No.: 17,399 |
Hi,
I'm new to this and have been playing around with html basics in notepad but am getting screwed over when trying to create the website icon that is supposed to be located in the address bar / on the tab / in the bookmarks menu. I'm inserting the code / tab so that my text file looks something like this: <html> <head> <link rel="shortcut icon" href="c:\...\favicon.ico"> </head> </html> ---> where I've used several files by the name "favicon.ico" (where .ico is the extension) such as a 16x16 image made in paint and one where I have used an online tool to convert an image into the specific format. I have tried adding the page to my bookmarks. I have tried a few variations of the code and have tried with a relative url link "favicon.ico" where the file is in the same folder as the html document. Why is my icon still being ignored? Thanks, I'd really appreciate any advice, I know this should be really simple stuff but I just cant seem to get it to work at all |
Darin McGrew |
Jul 9 2012, 05:07 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Are the files in .ico format? Or did you just take .gif or .bmp or .png or .jpg files and rename them to a .ico name?
Also, "c:\...\favicon.ico" is a path on your filesystem. It needs to be a URL. |
zomboy |
Jul 10 2012, 10:38 AM
Post
#3
|
Group: Members Posts: 2 Joined: 9-July 12 Member No.: 17,399 |
Are the files in .ico format? Or did you just take .gif or .bmp or .png or .jpg files and rename them to a .ico name? Also, "c:\...\favicon.ico" is a path on your filesystem. It needs to be a URL. I'm pretty sure the file / files I've used have been in .ico format (icon files). How would I describe the file location in a URL format? Shouldn't it work if I just referred to the file in this instance as just "favicon.ico" in the code -ie- by means of a relative path? |
Frederiek |
Jul 10 2012, 10:58 AM
Post
#4
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
A favicon.ico won't show offline, only online on a server.
|
Darin McGrew |
Jul 11 2012, 12:57 AM
Post
#5
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
And yes, relative URLs work just fine for favicons.
|
Lo-Fi Version | Time is now: 26th April 2024 - 09:16 AM |