html - Difference between <link rel="icon" /> and <link rel="shortcut icon" /> -


this question has answer here:

what difference between <link rel="icon" /> , <link rel="shortcut icon" />.

i understand first commonly used display favicon in web browser title bar.

reading spec, can find fllowing explanation:

where define "href":

href = uri [ct] attribute specifies location of web resource, defining link between current element (the source anchor) , destination anchor defined attribute.

it means: href says resource , when comes link perspective, stabilishes "conection" betwen page , resource. remember name: web. used reach resource , download in browser.

now, going refinition of "rel"

rel = link-types [ci] attribute describes relationship current document anchor specified href attribute.

you're saying kind of relation page , resource have.

example:

<link rel="shortcut icon"        href="//cdn.sstatic.net/stackoverflow/img/favicon.ico?v=5bcec08ba0c5"> 

reference

http://www.w3.org/tr/html401/struct/links.html#h-12.3


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -