"Article reprinted from" Http://zhidao.baidu.com/link?url=r7u-mWSyYYGnRgBLcyKpnZKxr4fTG3434_55NKZ804BLrXOapX4_ 2iiuclbkxwj58qrc9rohzxu9qrh7ttbotq
Place the well-done icon file in your own spatial root directory, named Favicon.ico.
The principle of the browser call Favicon is to first find the Favicon.ico file in the same directory as the Web page, if not, look for it in the root directory of the website.
Therefore, the simplest way to use favicon on a Web page is to name the created icon file Favicon.ico and upload it to the root of the Web site.
If you need to put Favicon.ico in another directory, or want to let different pages display different favicon, you need to do in the Web page HTML file settings, the specific setting is very simple, in the HTML part of the following code is added:
<link rel= "icon" href= "/dir/favicon.ico" mce_href= "/dir/favicon.ico" type= "Image/x-icon" >
<link rel= "shortcut icon" href= "/dir/favicon.ico" mce_href= "/dir/favicon.ico" type= "Image/x-icon" >
Firefox also supports the favicon of animated GIF formats using the following methods:
First make a 16*16 gif animation, and then add the following code to the HTML code
<link rel= "shortcut icon" href= "Favicon.ico" >
<link rel= "icon" href= "Animated_favicon.gif" type= "Image/gif" >
If the site template is XHTML specification, add a//before the last >.
Note: If you want all the pages to display their own icons, then you need to add this code on all of your templates, the path is not wrong to write.
What does the small icon in the upper-left corner of the "unverified" site do?