Results 1 to 3 of 3

Thread: fav icon script question

  1. #1
    Join Date
    Apr 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default fav icon script question

    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

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by gopintos
    there seems to be an extra space in the code.

    <link rel="shortcut icon" href="/favicon.ico" />
    There are several spaces in that code. 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.

    HTML Code:
    <link ... type="image/x-icon">
    Mike
    Last edited by mwinter; 04-13-2005 at 02:34 PM. Reason: backslash => slash

  3. #3
    Join Date
    Apr 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •