What does the small icon in the upper-left corner of the "unverified" site do?

Source: Internet
Author: User

"Article reprinted from" Http://zhidao.baidu.com/link?url=r7u-mWSyYYGnRgBLcyKpnZKxr4fTG3434_55NKZ804BLrXOapX4_ 2iiuclbkxwj58qrc9rohzxu9qrh7ttbotq

    1. Place the well-done icon file in your own spatial root directory, named Favicon.ico.

    2. 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.

    3. 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.

    4. 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" >

    5. 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" >

    6. 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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.