How to make a website display a small icon in front of the browser URL_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:41:04
Original
1497 people have browsed it

When you browse many websites, you will find a small icon in front of the browser's address bar and a small icon in the browser tab. For example, Baidu, Tencent and other websites have such icons. Would you like to add a small icon like this to your website? With this small icon, your website will be more eye-catching than other people's websites and attract other people's attention.
PHOTOSHOP, FLASHFXP, Notepad
Need to make a small icon in ico format
Steps/Methods:
1. Use PHOTOSHOP to make a small icon with a width and height of 32 pixels, and save it after completion It can be in ico format.
2. Use FLASHFXP to download the web page to your local computer and make a backup copy just in case. Use Notepad to open the source code of the web page.
3. Find the head part of the web page source code and insert the following code in the head part. Note that the address in the href is the address where you store the ico icon. Write it according to the location on your website.

4. Upload the modified web page file to the virtual host, and then store the completed ico file in the images website directory of the virtual host.
5. Done! Open IE browser and enter your website address to try? Do you already have a small icon?
The format of the small icon must be in ico format, and the width and height are both 32 pixels
If you cannot see the small icon after following the above steps, please clear the cache of the IE browser and clean it After the cache is completed, you can see the small icon.
The storage location of the small icon must be consistent with the storage location in the code, otherwise it will not be displayed.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template