EN
HTML - set web page favicon
3
points
In this article, we would like to show you how to set web page favicon in HTML.
Quick solution:
for *.ico file:
<link rel="icon" type="image/x-icon" href="https://example.com/favicon.ico" />
for *.png file:
<link rel="icon" type="image/png" href="https://example.com/favicon.png" />
Practical example
In order to set web page favicon, you need to specify a link element with the href attribute containing path to the new favicon.ico file and put the link inside head section.
<!doctype html>
<html>
<head>
<link rel="icon" type="image/x-icon" href="https://example.com/favicon.ico" />
</head>
<body>
<div>Some div element on the web page...</div>
</body>
</html>