EN
HTML / SEO - attach png icons / favicons with different sizes to your webpage
7 points
In this short article, we would like to show how to attach proper icon sizes to your webpage that have a good impact on user experience and SEO.
Because of different devices and screen resolutions, it is good to use the following sizes:
48x48
, 72x72
, 96x96
, 144x144
, 192x192
, 256x256
, 384x384
, 512x512
.
Simple steps:
- export your icons to
ico
,gif
orpng
files:
batch export fromsvg
topng
with Inkscape, you can find here, - insert
link
elements with icon paths insidehead
element:
it is good to use the proper sizes of icons to match different devices,
xxxxxxxxxx
1
2
<html>
3
<head>
4
<link rel="icon" sizes="48x48" type="image/png" href="/gfx/icon-48x48.png" />
5
<link rel="icon" sizes="72x72" type="image/png" href="/gfx/icon-72x72.png" />
6
<link rel="icon" sizes="96x96" type="image/png" href="/gfx/icon-96x96.png" />
7
<link rel="icon" sizes="144x144" type="image/png" href="/gfx/icon-144x144.png" />
8
<link rel="icon" sizes="192x192" type="image/png" href="/gfx/icon-192x192.png" />
9
<link rel="icon" sizes="256x256" type="image/png" href="/gfx/icon-256x256.png" />
10
<link rel="icon" sizes="384x384" type="image/png" href="/gfx/icon-384x384.png" />
11
<link rel="icon" sizes="512x512" type="image/png" href="/gfx/icon-512x512.png" />
12
</head>
13
<body>
14
Web page content here...
15
</body>
16
</html>