xhtml - Can I get an .ico( Icon) to display from a local file -


i doing client side testing web application using ie only, there no server - can test css/xhtml/javascript.

when add line

<link rel="icon" href="favicon1.ico"/> 

or

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

or

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

i not see .ico image displayed in tab.

my favicon1.ico 32px 32px (32 bpp, 8-bit alpha, no pallete) .ico file created/saved in gimp residing in same directory html files.

pretty convinced ie needs server @ point.

quote op: <link rel="shortcut icon" href="d:/bi1.ico"/>


you'd reference external files relative urls.

if icon file contained in same directory page...

href="myicon.ico" 

edit:

this valid answer original posting. however, original posting has since been edited point above answer no longer makes sense.

edit 2:

the following how mine working.

i believe browsers fussy name use favicon.ico.

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

edit 3:

quote op: "i saved 40px 40px .ico file"

this not sound right @ all. ico files used favicon typically 16 x 16 pixels optional 32 x 32 pixel desktop version and/or optional 48 x 48 pixel xp version.

here online tool creating proper favicon.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -