Favicon tag
Posted February 7th, 2009 in HTML and CSS
A favicon is the little icon you see in your browser address bar and in your favorites/bookmark list. By default web browsers look for the file favicon.ico in your website's root directory but it's possible to specify a different location for the favicon. I'm always having to look this up myself if I need to specify a different location so am posting how to do this here as my reference point.
In the <head> section of your HTML document, add the following tag:
<link rel="shortcut icon" href="/path/to/your/favicon.ico" />
and substitute the /path/to/your/favicon.ico with the actual name of your favicon file.
Related posts:
- Valid characters for the HTML ID attribute (Saturday, April 4th 2009)
- How to make a font italic with CSS (Saturday, February 21st 2009)
- Using !important with CSS (Saturday, January 31st 2009)
- How to do the TM symbol in HTML (Saturday, November 8th 2008)

Comments
blog comments powered by Disqus