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

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

Publish Date: Sep 8 '23
0 0

We still asking ourselves: should we use rel="shortcut icon" or rel="icon" or both for our favicon?

Example code

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

Solution

Avoid rel="shortcut icon" and use only rel="icon".
According to MDN and rel attribute documentation:

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.

Comments 0 total

    Add comment