468,507 Members | 1,496 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,507 developers. It's quick & easy.

favicon

the extension of favicon MUST BE ico?

what if I use a 16x16 favicon.png?
Mar 25 '06 #1
4 2767
Chameleon wrote:
the extension of favicon MUST BE ico?
what if I use a 16x16 favicon.png?


There are really two questions here:

(a) does the favicon have to be *named* "/favicon.ico"?; and
(b) does it have to be in Windows Icon format -- can it be in PNG?

A. No, it doesn't. But if you give it a different name, browsers won't
know where to look for it, so you'll have to provide a link to it in your
HTML files:

<link rel="shortcut icon"
href="/myfavicon.ico"
type="image/x-icon">

B. No, it doesn't. Some browsers support favicons in other image formats,
like PNG. However, Internet Explorer *only* supports Windows Icon format
for favicons.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Mar 25 '06 #2
Chameleon wrote:
the extension of favicon MUST BE ico?

what if I use a 16x16 favicon.png?


In general, a favicon must be an icon. That's why it's call a favICON.

Taking a file that is not an icon and changing the extension (e.g., your
favicon.png) to ico will not work. In this case, the file is still
formatted as PNG.

On the other hand, none of my favicons are named "favicon.ico". As
Inkster points out, the LINK element can be used to indicate which of
several icons to use. I use seven different icons, depending on the
topic of the Web page.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
Mar 25 '06 #3
all you need to do is upload the favicon.ico to your root directory.
you do not need to put a link tag in your source code. it works just
fine without it.

Mar 29 '06 #4
dw************@gmail.com wrote:
all you need to do is upload the favicon.ico to your root directory.
you do not need to put a link tag in your source code. it works just
fine without it.


That only works if (1) you have access to your root directory and (2)
the file is indeed named "favicon.ico". The latter is important if you
want to use different icons for different pages within the same Web
site. Since each icon file has its own unique name, you then need to
link to an icon file in each case that it's not "favicon.ico".

For a discussion of multiple icon files, see my
<http://www.rossde.com/internet/web_design.html>.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
Mar 31 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Bart | last post: by
2 posts views Thread by foldface | last post: by
15 posts views Thread by BT | last post: by
2 posts views Thread by alice | last post: by
reply views Thread by Gabriela | last post: by
reply views Thread by Guy Macon | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.