Jump to content


favicon code questions


2 replies to this topic

#1 kenyo

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 02 January 2005 - 10:26 AM

Can someone here please tell me the correct code to link a favicon? I have noticed four ways to do it and they all seem to work some of the time:

1. <link rel="icon" href="Favicon.ico">

2. <link rel="icon" href="Favicon.ico" type="image/x-icon">
What is the need for type="image/x-icon" at the end?

3. <link rel="icon" href="Favicon.ico" type="image/x-icon" />
Why the space and the forward slash at the end?

4. <link rel="icon" href="Favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="Favicon.ico" type="image/x-icon" />
Two lines of code. What does the top line accomplish?

Many thanks,
Ken

#2 brad

    Young Padawan

  • Members
  • Pip
  • 95 posts
  • Location:Alabama
  • Interests:Senior IT student at South Alabama. Spent 8 yrs in varied roles in the army. Looking to get fluent with photoshop.

Posted 02 January 2005 - 10:51 AM

method one there is what i used, and i know it works. The others probably work as well, but i go with what i know.

#3 adam123

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 2,306 posts
  • Location:London, UK
  • Interests:Programming and stuff.

Posted 02 January 2005 - 05:13 PM

Shouldn't this be in the web design forum or something?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users