Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ html Website Icon, simple stuff

Posted by: zomboy Jul 9 2012, 03:41 PM

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

Posted by: Darin McGrew Jul 9 2012, 05: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.

Posted by: zomboy Jul 10 2012, 10:38 AM

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

Posted by: Frederiek Jul 10 2012, 10:58 AM

A favicon.ico won't show offline, only online on a server.

Posted by: Darin McGrew Jul 11 2012, 12:57 AM

And yes, relative URLs work just fine for favicons.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)