Most shortcut icon are presented in HTML like this:
<link rel="Shortcut icon" href="url" />
but many sites don't have shortcut icon in their html code but still chrome is showing me icons on tabs. How they made it? I want to download icons from different websites but I don't know where my crawler should look for them. Examples of websites where I can find it:
http://www.startuplessonslearned.com/2008/10/lean-startups-vs-lean-companies.html
On the second page give as example, the tag is
<link href='http://www.startuplessonslearned.com/favicon.ico' rel='icon'
type='image/x-icon'/>
The attribute specification rel="icon"
is practically synonymous with rel="shortcut icon"
.
On the first page, there is no tag that affects favicon issue, but at the server root there is a file with the name favicon.ico
, i.e. http://www.amazon.com/favicon.ico, and that’s what browsers use, by convention. Putting an icon under such a name at the server root thus makes the link
elements redundant, provided that you want to use the same icon for all pages. Of course, not everyone can put files at the server root.