You must Sign In to post a response.

How to put an icon in the titlebar of an html page

Hi der !
How to put an icon in the title bar of an html page.Help plz !

Thanking you all
Rijesh


Comments

Author: Nikhil Gaur24 Jun 2009 Member Level: Gold   Points : 2

Method 1
If you have access to the root of your web site, simply save your icon file as "favicon.ico" there. For example, if your web site is "www.dotnetspider.com", your icon file should be available at "www.dotnetspider.com/favicon.ico". The web browser will look for favicon.ico whenever your site is added to the favorites list and if it is found at the root of your web site, the icon will appear next to the link to your site.

Method 2
If you don't have access to the root of your web site, you have to add the following tag to your web page so that the browser will know where to look for your icon. Unlike before, this time you can save the icon under any name ending with ".ico" We'll use the name "logo.ico" and assume that your web site is under the directory "~icon".

HREF="/~icon/logo.ico">

this tag should be inserted in-between the HEAD tags.

By the way, you can specify multiple logos for multiple pages using the second method. Simply save your icons using unique names, such as logo1.ico, logo2.ico, logo3.ico for example, and replace "logo.ico" in the above HTML code with the name of the icon you want to use for any particular page.

Author: Devendra06 Jul 2009 Member Level: Gold   Points : 2

By the way, you can specify multiple logos for multiple pages using the second method. Simply save your icons using unique names, such as logo1.ico, logo2.ico, logo3.ico for example, and replace "logo.ico" in the above HTML code with the name of the icon you want to use for any particular page.

Author: DCPL - Praveen Kumar.m20 Jul 2009 Member Level: Gold   Points : 2



My Title

Author: Bijomon Varghese31 Jul 2009 Member Level: Bronze   Points : 2

First create an .ico file of the icon then save it in the root folder
and put the below code in the head section.

=========================
=========================

If you don't have access to root folder just put the name.ico file where you have access and then put the link in href="location/name.ico"