The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> html Website Icon, simple stuff, Website icon tab is being ignored
zomboy
post 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. angry.gif

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.

huh.gif 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 blush.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jul 9 2012, 05:07 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 7,986
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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
zomboy
post Jul 10 2012, 10:38 AM
Post #3





Group: Members
Posts: 2
Joined: 9-July 12
Member No.: 17,399



QUOTE(Darin McGrew @ Jul 9 2012, 10:07 PM) *

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? huh.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Jul 10 2012, 10:58 AM
Post #4


Programming Fanatic
********

Group: Members
Posts: 4,125
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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jul 11 2012, 12:57 AM
Post #5


WDG Member
********

Group: Root Admin
Posts: 7,986
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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2014 - 01:26 PM