Programming Tips - Web: does my website's favicon.ico have to be .ico format and in the root folder?

Date: 2024jun25 Language: html Q. Web: does my website's favicon.ico have to be .ico format and in the root folder? A. No you can have it in a subfolder (reducing clutter) and use PNG or other normal web image format. Place
<link rel='icon' href='/images/favicon.png' type='image/png' />
At the top of your home page. You can use this image in the home page (then the user's browser won't download 2 images)
<img src='/images/favicon.png'>