Using Icons As Images

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am trying to use icons as the image files in the SRC attributes
of IMG elements.  This seems to work with Mozilla but not with
other browsers.  

The icons were created using an icon editor or extracted from
executable files that contained icons.  They all have the extension

My Web server has an .htaccess file that contains
    AddType image/ico ICO

A sample page is at <URL: .  

Any suggestions?  Are not icons valid image files?  

On that test page, I also use one of the icons (the DR) as a
favicon, with the following in the HEAD section of the page:
  <link rel="shortcut icon" href="../DR.ICO" type="image/x-icon">  
  <link rel="icon" href="../DR.ICO" type="image/x-icon">
With Mozilla, I see this in the address area of my browser.  With
other browsers, this does not seem to work.  Do not other browsers
display favicons in the address area?  


David E. Ross

I use Mozilla as my Web browser because I want a browser that
complies with Web standards.  See <URL:>.

Re: Using Icons As Images

"David Ross" wrote:

Quoted text here. Click to load it

That's because the other browsers don't support images in the ICO format.

Similarly, not all browsers support SVG images, or WBMP images. There are
literally hundreds of different image formats. The ones supported by most
browsers are GIF, JPEG and PNG. Use one of those instead. GIF is probably
the best choice in this case.

phil [dot] ronan @ virgin [dot] net /

Site Timeline