Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Adding a favicon to your website
Old 02-21-2008, 02:02 AM Adding a favicon to your website
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
There have been a few topics on this matter, so let's make it clear.

Best practice
For the sake of IE compatibility, use an ICO format. It must contain at least 16 pixels by 16 pixels and no more than 256 colours. You should add 32*32, 48*48, 128*128, etc etc icons for people who want to shortcut your site on their desktop. It is also ideal to name it favicon and have it in the root directory of your site. Some older browsers supported favicon by finding the file in the root directory but did not read the link tag for it.

The code
HTML Code:
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="favicon.ico">
This will make it appear on all supporting browsers.

Alternatives
If you're not worried about it displaying in IE then you can use one of three formats: ICO, GIF or PNG. PNG is possibly your best bet, but if you want it animated go for GIF. PNG is supported at 32 bits on Firefox 2, Opera 9 and Safari 3 (Windows). To use GIF or PNG you should change the type to either image/gif or image/png.

For additional and up to date information on the favicon, check Wikipedia.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
 
Register now for full access!
Old 04-30-2008, 02:35 PM Re: Adding a favicon to your website
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Bump for reference.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 04-30-2008, 08:59 PM Re: Adding a favicon to your website
tamar's Avatar
Webmaster Talker

Posts: 507
Name: Tamar Weinberg
Location: New York
Trades: 0
You might want to point people to a favicon creator like this: http://tools.dynamicdrive.com/favicon/

Adding .ico to the end of your .gif or .jpg won't cut it.
__________________

Please login or register to view this content. Registration is FREE
tamar is offline
Reply With Quote
View Public Profile Visit tamar's homepage!
 
Old 04-30-2008, 10:20 PM Re: Adding a favicon to your website
Banned

Posts: 81
Location: kavoir.com
Trades: 0
I'd just go with this:


<link rel="shortcut icon" href="favicon.ico">

no mime type.
yangyang is offline
Reply With Quote
View Public Profile Visit yangyang's homepage!
 
Old 04-30-2008, 10:39 PM Re: Adding a favicon to your website
Novice Talker

Posts: 14
Name: Jermaine
Trades: 0
thanks buddy that helps alot
RevelationZ is offline
Reply With Quote
View Public Profile
 
Old 05-03-2008, 06:09 PM Re: Adding a favicon to your website
aschecht's Avatar
Extreme Talker

Posts: 190
Name: A
Location: San Jose, CA
Trades: 6
Great thread - I was just trying to understand all of this favicon stuff.

Question - How does one post parallel favicon.ico files with different sizes? In other words, I want a 16x16px icon for the browser's address bar, a 32x32px for WinXP desktop, and a 48x48px icon for Vista, others.

Does one just post the 48x48px .ico file and its compressed for the lower res needs? Or does one post three different versions of the favicon.ico file? And if that's the case, how do you name them?

Andrew
aschecht is offline
Reply With Quote
View Public Profile Visit aschecht's homepage!
 
Old 05-04-2008, 03:30 PM Re: Adding a favicon to your website
TheHosted's Avatar
Skilled Talker

Posts: 64
Name: Michelle
Location: Cyber Space
Trades: 0
Hello,

Where do you put the favico in the .html page? I've always put it after my cascading style sheet like the example below. Thanks for your help.

<title>TheHosted.com</title>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="http://www.thehosted.com/images/favicon.gif">
TheHosted is offline
Reply With Quote
View Public Profile Visit TheHosted's homepage!
 
Old 05-04-2008, 04:52 PM Re: Adding a favicon to your website
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
It will automatically use the icon size that is required. When making icon files, you often have the capacity to use various sizes and colour depths.

So long as it is in the <head> section, it doesn't matter.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 05-04-2008, 07:04 PM Re: Adding a favicon to your website
aschecht's Avatar
Extreme Talker

Posts: 190
Name: A
Location: San Jose, CA
Trades: 6
Moofasa,

Thanks for the follow-up. After reading more (but having no personal experience with this), it sounds like the .ico file format is actually an archive of sorts that includes the files of various dimensions and color depths. Then, with a single .ico file, an application can pick out the exact image that is best suited for it (ie. 16x16 for browser's address bar, 32x32 for WinXP desktop, etc).

Am I understanding this correctly?

When one creates a .ico file, does the designer have to create each of the component files individually or do they just design it once and the program saves it in all of the appropriate file formats?

Andrew
aschecht is offline
Reply With Quote
View Public Profile Visit aschecht's homepage!
 
Old 05-05-2008, 12:29 AM Re: Adding a favicon to your website
pzn
pzn's Avatar
Average Talker

Posts: 21
Trades: 0
Quote:
Originally Posted by TheHosted View Post
Hello,

Where do you put the favico in the .html page? I've always put it after my cascading style sheet like the example below. Thanks for your help.

<title>TheHosted.com</title>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="http://www.thehosted.com/images/favicon.gif">
As Moofasa stated anywhere in the <head>, but make sure that you use a .ico instead of a .gif!
pzn is offline
Reply With Quote
View Public Profile
 
Old 05-08-2008, 02:04 PM Re: Adding a favicon to your website
vectorialpx's Avatar
Extreme Talker

Posts: 241
Name: octavian
Location: Bucharest
Trades: 0
.gif is oke... why you have doubts and why you make your life complicate?
__________________
you can
Please login or register to view this content. Registration is FREE
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Reply     « Reply to Adding a favicon to your website
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.52841 seconds with 12 queries