This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9996|Reply: 0

[HTML/HTML5] HTML custom favicon ico path address

[Copy link]
Posted on 2021-3-8 09:58:06 | | |
By default, browsers automatically request the "favicon.ico" icon file at the root of the website, which appears in the browser tab.

If our ICO path is not below the root of the site, we need to add a callout code to the HTML, otherwise we will get a 404 error:

:50985/favicon.ico:1 Failed to load resource: the server responded with a status of 404 (Not Found)

The custom favicon ICO path code is as follows:







Previous:MinIO Storage (1) Install MinIO as a service under Windows
Next:SEO's Open Graph Protocol
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com