Jump to content

Recommended Posts

Posted

When I bookmark a website in Mozilla Firefox, I notice there is a small icon (avatar?) logo next to the name.

 

The areas of concern are circled in red.

 

websitelogoavatars7nn.th.jpg

 

How could I obtain the same result with my website when someone bookmarks it?

Posted

Ideally you'd use this:

<link rel="icon" href="http://example.com/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://example.com/favicon.ico" type="image/x-icon" />

because IE and Mozilla do it different ways (IE does it the second way, contrary to standards).

Posted

But really, you don't need either. If you have a file called favicon.ico in the same directory; your browser will find it depending on what mood it is in.

Posted

The only time I use the '<link rel="icon".....' comment is if I want to use different icons on different sections of the site. Otherwise I simply drop a "favicon.ico" file into the root directory as described above. As long as the "favicon.ico" file is placed in the root directory in this way most browsers will automatically find it.

 

For those who use Photoshop CS2 they can find free plugin for Photoshop that allows one to save graphics files as ICO files. My advice is to create them as 32x32 images and convert them to indexed color with no more than 32 colors. This can significantly reduce the file size.

Posted

Automatically find it?

 

Are you saying most browsers look through the root director to find this file, in other words, I don't have put it on an individual page?

Posted

Yep, they do a recursive search throughout the entire path. This is because IE implemented it first (it was originally an icon that would only show up when you bookmarked a site, i.e. added it to your favorites) and that's the behavior Microsoft chose, so everyone copied it

Posted
That's why, in most server error logs, you'll find a bazzilion 404s from browsers looking for www_root/favicon.ico.

That's how I first learned about favicon.ico. Years ago when Microsoft first implemented it, I started to notice 404s for favicon.ico, so I investigated to find out what it was.

Posted
But really, you don't need[/u'] either. If you have a file called favicon.ico in the same directory; your browser will find it depending on what mood it is in.

 

hahaha yah "depending on what mood it is in"...

 

I think my browser may be going through a bout of depression at the moment... lmao.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.