How to display a small icon in front of the browser URL

How to display a small icon in front of the browser URL
When you browse many websites, you will find that there is a small icon in front of the browser address bar, and there is also a small icon in the browser tab position. For example, Baidu, Tencent and other websites have such icons. Do you want to add a small icon like this to your website? With this small icon, your website will be more eye-catching than others and will attract more attention from others.
PHOTOSHOP, FLASHFXP, Notepad need to make a small icon in ico format steps/methods:
1. Use PHOTOSHOP to create a small icon with a width and height of 32 pixels. After the creation is completed, save it 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 href is the address where you store the ico icon. Write it according to the location where it is stored on your website.
<link rel="shortcut icon" type="image/x-icon" href="http://www.iswweb.com/images/favicon.ico" media="screen" />
4. Upload the modified web page file to the virtual host, and then store the finished ico file in the images website directory of the virtual host.
5. Mission accomplished! Open IE browser and enter your URL to try? Is there already a small icon?
The format of the small icon must be 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. You can see the small icon after clearing the cache.
The storage location of the small icon must be consistent with the storage location in the code, otherwise it cannot be displayed.

<<:  Building a Redis cluster on Docker

>>:  Design Association: Why did you look in the wrong place?

Recommend

Vue realizes price calendar effect

This article example shares the specific code of ...

In-depth explanation of the principle of MySQL Innodb index

introduction Looking back four years ago, when I ...

Several methods of calling js in a are sorted out and recommended for use

We often use click events in the a tag: 1. a href=...

Write a mysql data backup script using shell

Ideas It's actually very simple Write a shell...

mysql method to view the currently used configuration file my.cnf (recommended)

my.cnf is the configuration file loaded when MySQ...

JS Canvas interface and animation effects

Table of contents Overview Canvas API: Drawing Gr...

Share 20 excellent web form design cases

Sophie Hardach Clyde Quay Wharf 37 East Soapbox Rx...

JavaScript implements the generation of 4-digit random verification code

This article example shares the specific code for...

Vue2.0 implements adaptive resolution

This article shares the specific code of Vue2.0 t...

Nginx content cache and common parameter configuration details

Use scenarios: The project's pages need to lo...

Nginx request limit configuration method

Nginx is a powerful, high-performance web and rev...

Detailed explanation of mysql transaction management operations

This article describes the MySQL transaction mana...

Basic operation tutorial of files and permissions in centos

Preface Before we begin, we should briefly unders...

Detailed process of upgrading glibc dynamic library in centos 6.9

glibc is the libc library released by gnu, that i...