PDA

View Full Version : fav icon script question



gopintos
04-13-2005, 12:12 PM
the fav icon script is pretty easy to follow, and maybe i just havent waited long enough for it to work, but there seems to be an extra space in the code.

<link rel="shortcut icon" href="/favicon.ico" />

is this correct?
Thanks!
Melinda

mwinter
04-13-2005, 12:22 PM
there seems to be an extra space in the code.

<link rel="shortcut icon" href="/favicon.ico" />There are several spaces in that code. :p Which one do you feel is extraneous? In any case, it appears fine to me, though if you're writing HTML (not XHTML) there should be no slash at the end of the tag (that is, > not />).

By the way, you may want to specify the MIME type of the icon, as Mozilla (at least) supports additional file types, not just Windows icons.


<link ... type="image/x-icon">Mike

gopintos
04-13-2005, 01:01 PM
ha, you are so right. ok, i meant the extra space at the end :-) I am simply a cut and paster, and I only know how to cut and paste into frontpage :-) ... so your post was very helpful. Thanks so much!
Melinda