473,666 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

favicon

the extension of favicon MUST BE ico?

what if I use a 16x16 favicon.png?
Mar 25 '06 #1
4 2953
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.ic o". 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.ic o". 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.ic o".

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14159
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip Smarty-2.6.7.tar.gz on a system running WindowsXP SP2. Apache and PHP tested out fine. After adding Smarty, I ran the following http://localhost/testphp.php
7
5021
by: Bart | last post by:
Hi there, If I use frames, should a reference to the favicon.ico (like: <link rel="shortcut icon" href="pictures/favicon.ico" type="image/x-icon">) be placed on _every page_, or is one reference in the index.htm (top-frame) enough. I'm asking this question because I had a reference in my top-frame only, wich seemed to work OK (the favicon showd in the adress-bar in all frames), but all of a sudden the favicon won't show anymore in the
1
2177
by: Robert Oschler | last post by:
I have a 16 color 16 x 16 pixel icon (favicon.ico); 4-bit palette. I have put the icon in the root directory of my web site, and I have also added the <link rel="SHORTCUT ICON" ... /> HTML tag in the document header section. The icon appears fine in FireFox's address bar, but refuses to show up in the notebook tab. The notebook continues to show the "blank document" generic icon. What am I doing wrong and how can I fix this?
2
1541
by: foldface | last post by:
Hi If I have a website with a url like http://localhost/MyWebPage/SomeDirectory/startPage.aspx Can I still use a favicon.ico file? For the entire Site? How? Its hard to experiment with favicon files as they seem to be quite hit and miss as to whether or not they appear Ta F
15
2908
by: BT | last post by:
I'm have a problem showing a favicon in ver 1.7.10. It shows up correctly in the address bar, but is missing from the tab. I've tried each of these HTML 'statements' to add the favicon to the page, but no luck: <link rel="shortcut icon" href="/favicon.ico" > <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> FWIW, it seems to render OK in IE v6.0. I haven't tried it in FFox 2.0 yet, but I'll need it to work there...
2
4206
by: alice | last post by:
I'm trying to create a favicon which I've done before, and it just won't show up. I've even saved the file as a gif and entered the URL of where the file is according to my FTP program, and I get a File Cannot Be Found error. I've copied the pixels from the file and pasted them into a favicon that is working and showing up, renamed it by just adding a number to the end, and still it won't show up, either as an .ico or a .gif. So I've...
4
3048
by: mistral | last post by:
Does it possible change favicon icon depending on browser type: display favicon.ico for Internet Explorer browsers, and favicon.gif for the rest browsers? Problem is that ugly MSIE can display only .ICO favicons, whereas other browsers support any favicon type - gif, png, jpg. Since gif favicons has much better quality than ico file, I'm wondering does it possible sort browsers with javascript and show appropriate favicon type for...
0
1362
by: Gabriela | last post by:
Hi, I want to display favicon from different domains on my page. I wrote this line (domain is a variable): <span style="background-image:url('domain/favicon.ico');width: 16px;height:16px;"></span> Is there a way to display empty favicon when a certain domain does not have a favicon? is there a way to know it without round trip to the domain to check it in advanced? Thanks, Gabi.
0
2786
by: Guy Macon | last post by:
Moon wrote: It isn't a question of relative vs. full URL paths in your meta tags. It is a question of following the paths (relative or full URL) in your meta tags vs. not reading the meta tags at all and just looking for the favicon in the root. The standard behaviour is defined here: http://www.w3.org/2005/10/howto-favicon ] (The examples have full URLs but of course relative URLs
0
8449
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8360
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8876
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8784
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8556
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2774
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.