How do I get my page title to have an icon?

littlechris picture littlechris · Sep 13, 2009 · Viewed 216.9k times · Source

I would like to have my site’s logo shown in the icon area of the title rather than the default white document. Exactly as Stack Overflow has it.

Answer

NiklasMM picture NiklasMM · Sep 13, 2009
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />

add this to your HTML Head. Of course the file "favicon.ico" has to exist. I think 16x16 or 32x32 pixel files are best.