>>
Get a free iPod, XBox 360, or PS3!
 > CSS > Web Design > HTML > >
Web Hosting Tutorial -- Use Twitter? Follow Dave.

HTML Code: Favorite Icons, The Favorites Icon

HTML Tutorial Chapters:  
HTML An Interactive Tutorial
> > Today's Hot Topics < < 

advertisements


Setting Up a Favorites Icon (favorite.ico)

Save 25% with Yahoo! Web Hosting - Only $7.46/month

Favorites Icons (favicon.ico) -- Adding a Favorites Icon to your Web Site with HTML

Yahoo! Small Business - Web Hosting
Hopefully if you found this page you already know what a Favorites Icon is. In modern web browsers, when you visit a web site (and add it to your Favorites/Bookmarks) it will load a specific small icon set by the webmaster.

snapshot of Favorite's Icon

Look at the top of your browser near the Back button and WWW address to see the Favorites Icon.

Do you want a great web host?
The Package Includes...
Would you like to learn more?
Get the Details

The Favorites Icon will show up next to the URL (the http:// web address) in your web browser near the top of the window (close to the Foward and Back buttons).

(Some older versions of Internet Explorer don't add the icon until you add it to Favorites, just FYI.)

If you're looking to automatically turn a graphic image you already have into a favicon.ico file without downloading any software, view the links in the resource section on this page: Favorites Icons - Adding an Icon For Bookmarks.

How do I set up a favorite icon?

Create a 16 pixel wide by 16 pixel high favicon.bmp file in a Program like MS-Paint, Adobe Photoshop, or Jasc's Paint Shop Pro, then use a program (such as the free IrFanView app [for Windows]) to reduce the colors to 16 colors [Image -> Decrease Color Depth], and then 'save as...' to a Windows Icon Format (favicon.ico).

Don't have a favicon.ico file yet? Learn how to make one.

Read my detailed walk-through guide: making a graphic into a Favorites Icon


Loading The Icon for The Entire Web Site (no coding)
Get Unlimited Disk Space and a
Free Domain Name with GreenGeeks Hosting.
[ Get Details ]

Upload the image (favicon.ico) with FTP (read our FTP tutorial) to the root section of your web site. The root section is the main file area, where you would store the index.html (index.asp, index.php, etc) file for your main page.

http://www.davesite.com/ would be the root
http://www.davesite.com/webstation/ would not be the root
http://www.davesite.com/webstation/html/ isn't root either

This file, placed properly, will load as the default for your entire domain.

Loading Extra Icons for Specific Folders and Pages

You can add customized links for sub-folders by using this code in the <head> section of your web page coding:

<link REL="SHORTCUT ICON" HREF="http://yoursitedotcom.here/yourdir/favicon.ico">

Order Green Geeks Hosting

Example: We place a new favicon.ico in http://www.davesite.com/webstation/html/ ... then link to it with:

<link REL="SHORTCUT ICON" HREF="http://www.davesite.com/webstation/html/favicon.ico">

The pages with the Favorite code load our special icon, everything else on the site loads our ROOT Favorite Icon.

Reload the page... and try adding it to your favorites or bookmarks. (In Internet Explorer you may need to clear your cache/temporary files and Restart the browser.) Once you've added it to the favorites, close the browser and then open it again, and return to the site? Does it show up now? It should! :)

Update: You can now download a plug-in for Photoshop, Photoshop Elements, or Paint Shop Pro to make your ICO file here.

Order Green Geeks Hosting

continued... >

Related Articles:

Click here for details on my favorite Internet Marketing course.
[ Learn how to get a .com | HTML Index | The Basics of Web Hosting ]
Copyright © Dave Kristula. All rights reserved.
URL: http://www.davesite.com/webstation/html/favicon.shtml