VisezTrance

  • July 15, 2009 1:23 AM

    Alternate favicon with a non IE comment tag

    By Daniel
    Quite often I look at the html source of some of the websites I visit. Last night I found this interesting snippet while browsing Deviantart:

    <link href="http://st.deviantart.net/icons/favicon.ico" rel="icon"/>
    <![if ! IE]>
    <link href="http://i.deviantart.net/icons/favicon.png" rel="shortcut icon"/>
    <![endif]>

    A brilliant use of the non IE comment tag, forcing browsers that support it to use an alternate higher quality png image while degrading gracefully to a generic ico file.

    Tags:

    • favicon,
    • html
  • Monthly Archives

    • October 2013 (2)
    • May 2012 (1)
    • October 2011 (1)
    • September 2011 (2)
    • March 2011 (3)
    • February 2011 (1)
    • January 2011 (1)
    • September 2010 (1)
    • August 2010 (1)
    • June 2010 (1)
    • April 2010 (1)
    • December 2009 (1)
    • October 2009 (1)
    • September 2009 (1)
    • August 2009 (1)
    • July 2009 (2)
    • April 2009 (2)
    • February 2009 (1)
    • January 2009 (2)
    • December 2008 (1)
    • October 2008 (1)
  • Pages

    • About / Contact

2008, © Daniel Mircea