There is another much easier way to add a HTML favicon to a website with HTML, without having to write any code. To do this, you simply need to create the file and name it. Once the design mark is created in the correct format, save it as favicon.ico and then place it in the main directory of your domain. This method, however, requires the file name to be correct and all lowercase.
In addition, two disadvantages are added: first, the integration of favicons without code is not recognized by all browsers; second, this method implies that all subdomains created under the main domain are displayed with this same icon. It is for these reasons that we do not recommend this method. Adding a favicon in HTML with a line of code remains much safer.