SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Fav ico in ie?

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fav ico in ie?

    Hi Friends,

    Can anybody help me, how to insert my fav ico in ie6 or ie7. I already hve a fav ico that is working in firefox and chrome. Should i hve another fav ico for ie, or what should i do, please help me in this issue.

    Thanks in Advance,

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)
    You can use the same one. The ico file should be named "favicon.ico" and located in your root folder (top level public html). Although I've seen variations of this tag (in the page's head), it works for me
    HTML Code:
    <link rel='shortcut icon' href='./favicon.ico' />

  3. #3
    Resident curmudgeon bronze trophy gary.turner's Avatar
    Join Date
    Jan 2009
    Location
    Dallas
    Posts
    990
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For IE, the icon must be an actual .ico file. Other browsers sniff the magic number, and can render gif, jpg, and png files, even when named with the .ico extension.

    cheers,

    gary
    Anyone can build a usable website. It takes a graphic
    designer to make it slow, confusing, and painful to use.

    Simple minded html & css demos and tutorials

  4. #4
    SitePoint Member
    Join Date
    Aug 2009
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The file name must be "favicon.ico" and must be located in the root directory of your web site. If the icon file was created by renaming a .gif file, this may cause a problem with being viewed in IE. As long as the file was created correctly (I use an online generator) and is named correctly with a .ico extension and in the root directory, IE should automatically pick it up.

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)
    So the link tag is not needed? Or is that for browsers other than IE? Or for use in the bookmarks/favorites?

  6. #6
    SitePoint Member
    Join Date
    Aug 2009
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The link tag is needed if you are using an image for your favicon that does not have a .ico extension. One programmer I work with uses both the favicon.ico and his own creation as a .gif. He uses the link tag for the .gif image for the other browsers to pick up, while IE picks up the favicon.ico file.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •