What is favicon? It is the abbreviation of Favorites Icon. Its function is that in addition to displaying the corresponding title in the browser's favorites, icons can also be used to distinguish different websites. When I encounter this kind of error, I feel very uncomfortable. There is obviously no problem. Why is a 404 error reported? The following is the solution.
method one
- Create a favicon.ico file directly in the root directory of the web project, provided you have the icon file ready.
method two
- Add the following sample code to the <head></head> tags in your HTML page:
<link rel="shortcut icon" href="#"/>
Comments
Post a Comment