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

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">

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:


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.