and What is the difference between and

The difference between <link rel = "icon" / "> and <link rel =" shortcut icon "/">

What is the difference between <link rel="icon" />and <link rel="shortcut icon" />.

I understand that the former is usually used to display an icon in the header of a web browser.

+4
source share
1 answer

Reading the specification, we can find a decrepit explanation:

Where we define "href":

href = uri [CT] This attribute defines the location of the website resource, thereby defining the relationship between the current element (source anchor) and the destination binding defined by this attribute.

: href , , , "" . : WEB. .

, "rel"

rel= link-types [CI] , href.

, .

:

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

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

-1

Source: https://habr.com/ru/post/1530892/


All Articles