son Posted January 5, 2009 Share Posted January 5, 2009 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 More sharing options...
jeffman Posted January 5, 2009 Share Posted January 5, 2009 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 More sharing options...
son Posted January 5, 2009 Author Share Posted January 5, 2009 According to Wikipedia:So you still use both on web page as they said in tutorial?Son Link to comment Share on other sites More sharing options...
Synook Posted January 6, 2009 Share Posted January 6, 2009 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 More sharing options...
son Posted January 7, 2009 Author Share Posted January 7, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.