Menu
Categories
HTML: Favorite Icon
November 3, 2009 Code

To set a icon to a website as it appears in the web browser.

fav_icon

The required size of a shortcut icon is 16×16 pixels.

To create the icon, use an icon editor, such as the one included in Microsoft Visual Studio or one of the many other icon editors available.

The best way to associate an icon with your Web pages is to save it as favicon.ico in your domain’s root directory (e.g., www.webreference.com/favicon.ico). Each time your Web page is added to a user’s favorites, Internet Explorer automatically searches for this file and places the icon next to all the bookmarks originating from your site.

Comments are closed
*