Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to add a site icon Icon

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail how to add the website icon Icon. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

The first step is to prepare an icon making software.

First you must understand that the so-called Icon is a special graphics file format with the. ico extension Ordinary image design software can not use this format, so you need to download an ico icon tool, the site commonly used software, recommend powerful Microangelo, you can easily make ico icon. Revised version of Chinese version download address: http://www.skycn.com/soft/2478.html

The second step is to determine the specifications of the favorites icon.

What appears in the favorites is 16-16; the color used should not exceed 16 colors. (for clarity), if you are not sure that you can find icons in * .ico format on disk C, you should be able to find those website icons in the IE cache. You can open these icons to know what format to use, just like other people's.

The third step is to design your own icon.

You can use the LOGO of your website as a thumbnail or design a unique pattern as a "favorites" icon. In short, it must belong to your own, and can well represent the style and personality of your website. Then name the icon file: favicon.ico (note that it needs to be named this file name). It can be made more eye-catching.

For example, change it with an icon file on your local computer. Search for a file on your computer and copy it to your desktop. Open it with Microangelo, modify it to 16016, use 256color bar, save as favicon.ico.

Finally, you just need to upload the icon file (favicon.ico) to the root directory of the server where your site is located. (that is, the folder where your home page index.html is located) you do not need to make any changes to your web page file, IE5 will automatically keep searching the root directory of your site, as soon as it finds the favicon.ico file, it will display the icon in the visitor's address bar and favorites list.

If you want to set different favorites icons for different pages, you need to add the following to the HEAD section of the web page file:

Note: the path of the icon must use an absolute path.

2. The second method: in the home HTML file, add the link command, which is placed between and.

For example, the following:

Href= "/ favicon.icon (just an example, you just need to replace it with your URL) and replace favicon.ico with the name of the ICO file you created

In this way, your self-made icons will be displayed only when netizens add your website to Internet Explorer's favorites and reopen the Internet Explorer browser.

Common methods:

The code is as follows:

This is the end of the article on "how to add website icon Icon". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report