Add icons to your website

Source: Internet
Author: User
Add the icon-Linux Enterprise Application-Linux server application to your website. For more information, see the following section. When visiting a large website, you can often see the custom icons (such as Sina, Netease, Google, etc.) in the address bar of a Web browser ...), the self-built Web server cannot display customizable icons. How can this problem be set?

I thought that I had to set it on the Web Server for a long time. I searched for the configuration document of Apache httpd Server and looked at it. It was frustrating that I had not found it. Today, I accidentally found a post on the Internet about how to set the WebSite's Icon. I tested It's work myself! It's fun to write it out and share it with you.

1. You need to customize a Website's Icon. Its specification is 16 × 16 pixel bitmap and it is named favicon. ico (why is this name mentioned later) stored in the root directory of the website.

2. Add the following code snippet To Your webpage:






3. Open your webpage on the client and enjoy your Website's Icon.

Name the Icon favicon. ico is stored in the root directory of WebServer because when the client uses the IE browser and the user saves your website to the favorites folder, IE will automatically search for the root directory of Web Server, check whether favicon exists. ico files, if any, are used as icons on the favorites page.

Filed under: Linux
Comments: 4 Comments

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.