What's the difference between shortcut icon and just icon?

#1

And should both be used?

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
#2

The rel attribute contains values that are space-separated.

And according to MDN:

The shortcut link type is often seen before icon, but this link type is non-conforming, ignored and web authors must not use it anymore.

So you’re fine to leave it out.

Further reading:

3 Likes