Thursday, February 07, 2008

How to change the favicon.ico in Webapp

There are many instance where we want to change the default favicon.ico of our web application. I also wanted that and follow the following procedure

  • First need to create favicon.ico , for that we can use http://www.favicon.cc

  • copy the favicon.ico into the context root

  • Then we need to add the following two links to our jsp or html file

    <link rel="icon" href="favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

  • Now reload the browser , then you would see your new icon

1 comment:

gumuruhsspj said...

I just use
this line of code only

OPENING SHARP BRAKET link rel="shortcut icon" href="favicon.ico" type="image/x-icon" SLASH CLOSING SHARP BRACKET

and it's work why then you need to put two line of code?