Hi,

I am useing one of my website for short cut icon. Its working fine in mozilla, but not in internet explorer can any one suggestion what mistake i did. My code is <link rel="SHORTCUT ICON" href=""/> Thanks in advance...

Dani AI

Generated

Short, practical checklist to get a favicon showing in Internet Explorer (and why it probably failed here)

The usual culprits are: a malformed href or markup (your first post had an extra anchor inside the href which breaks the tag), an invalid .ico file, the icon not being where IE expects it, or the server sending the wrong MIME type. , was right to experiment with paths; was right to question the ICO itself; and ’s distinction between an <img> icon and the site favicon is important — those solve different problems.

Make the link in the document head explicit and use a root path for widest IE compatibility (place it inside <head> before scripts/styles). Example (place in head):

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

Quick verification and server fixes

AddType image/x-icon .ico
AddType image/vnd.microsoft.icon .ico

ICO file notes and cache

  • Use a real ICO (not a renamed PNG). Create an .ico containing at least 16x16 and 32x32 images; some generators produce bad files.
  • Internet Explorer caches favicons aggressively — clear the browser cache or restart IE (or change the filename/path while testing) to force an update.

If those steps still fail, confirm the head tag is valid HTML (no stray tags/anchors inside attributes), test the icon from a different machine/browser, and recreate the .ico with a reputable generator.

Recommended Answers

All 6 Replies

Why do you use absolute link for icon ?

Try this: <link rel="shortcut icon" href="images/myicon.ico" /> :)

dn to its not working. I want to be show in internet explorer also.

Are you trying to put the icon on a link to a web page, or download the icon to the user's computer?

To use the icon as a button to link to a website, do this:

<a href="website.htm"><img src="pic.ico" /></a>

i dont think your ICO is a proper icon how did you create/convert it?

I have created new site, and favicon doesn't work on IE6 neither me. It's poor browser. :)

I have created new site, and favicon doesn't work on IE6 neither me. It's poor browser. :)

the file is not an icon i have downloaded it and checked it.

use a converter such as to convert an image file such as a gif into an icon this will then work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.