html - Difference between <link rel="icon" /> and <link rel="shortcut icon" /> -
this question has answer here:
- html5 `<link rel=“shortcut icon” />` 3 answers
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
Comments
Post a Comment