Jump to content

Favicon Inclusion


son

Recommended Posts

Have uploaded a favicon file and include it via:<link rel="Shortcut Icon" href="/favicon.ico"><link rel="icon" href="/favicon.ico" type="image/x-icon">It said in a tutorial that some consider the second line to be more correct, but if you want to use this you have both. Does anyone know why this would be? Works well, just does not make sense to me...Son

Link to comment
Share on other sites

According to Wikipedia:

The original favicon feature was created by Microsoft for Internet Explorer which would request a favicon from a set URL (/favicon.ico) on every website. Microsoft's supported format for the link tag did not conform to the World Wide Web Consortium (W3C) HTML recommendation [1] because:
  • The rel attribute must contain a space-delimited list of link types, so a two-word link type would not be understood correctly by conforming web browsers. (viz. rel="shortcut icon")
  • The ".ico" file format (a raster format used for icons on Microsoft Windows) did not have a registered MIME type and wasn't likely to be automatically understood by most web browsers. In 2003, however, the format was registered with the Internet Assigned Numbers Authority (IANA) under the MIME type image/vnd.microsoft.icon, eliminating the first part of this problem.
  • The use of a reserved location on a website conflicts with the Architecture of the World Wide Web and is known as link squatting or URI squatting.

The Mozilla web browser added support for favicons in a way that conformed to web standards through the use of rel="icon" and letting web designers add favicons in any supported graphics format, e.g. <link rel="icon" type="image/png" href="/path/image.png">. Most web browsers have since added support for this feature, and it is generally used for all new content.

Link to comment
Share on other sites

For compatibility, just in case. Though if you want to support standards and not the older versions of IE the second link element is more correct.

Link to comment
Share on other sites

For compatibility, just in case. Though if you want to support standards and not the older versions of IE the second link element is more correct.
Use for now both then...Thanks for your input,Son
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...