![]() ![]() |
| 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. 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: 7,851 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. -------------------- Darin McGrew
WDG Member since 1998 |
| 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: 3,539 Joined: 23-August 06 From: Europe Member No.: 9 |
A favicon.ico won't show offline, only online on a server.
-------------------- "The earth does not belong to us. We belong to the earth."
from Vue du ciel (in French) "Leave scepticism to others and take action" from HOME by Goodplanet An inconvenient truth by Al Gore |
| Darin McGrew |
Jul 11 2012, 12:57 AM
Post
#5
|
|
WDG Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Root Admin Posts: 7,851 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
And yes, relative URLs work just fine for favicons.
-------------------- Darin McGrew
WDG Member since 1998 |
![]() ![]() |
|
Lo-Fi Version | Time is now: 18th May 2013 - 09:13 AM |