DEV Community

Discussion on: Why do I even need favicon to prevent server errors? And, why the default is .ico?

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

favicon is meant to add information to the user about whether a browser tab or a saved URL (as desktop icon) contains. It's a good practice to have one and it needs to be placed on the root directory of your project with the name favicon.ico, because it's a web standard.

Inside your root HTML you can set up multiple icons as well, targeting specific devices like 'apple-touch-icon' or simply 'icon'.