treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Favicon

  • I am trieing to make a favicon show up with my website, but somehow it's not working...
    To my best knowledge, i've done everything wright, but it's not working.
    There is a favicon in my root directory and a line in my <head> tags that refers to it.
    (I even checked with a favicon checker from html-kit, and it says that is should be working)

    Is it the fact that i'm using XHTML or CSS or someting?
    What is wrong?

    I hope you guys can help out,
    Matt
  • the code should look like:
    <link href=\"http://www.yoursite.co.uk/favicon.ico\" rel=\"shortcut icon\"/>


    make sure you give the full address to the favicon, or pages in subfolders wont be able to find it
  • Also if you just added that code and refreshed the browser window and didn't see it, that's not surprising. I often have to restart my browser entirely in order to see a new favicon.