On most hosting services all you will have to do to get favicon to show up in the browser bar (including my own hosting service) is to place the favicon.ico file in the root folder of the hosting service.

Today I encountered a problem with one of the hosting services for a client of mine. The favicon was just not showing up. It took me a while to remember how to do this in code. I remembered finally and thought I should put it out for someone who either forgot or just don’t know how.

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