Add Favicon Image to HTML

Add Favicon Image to HTML site

Favicon is an image (icons/png) associated with a Web page/Web site. This favicon image is shown in the address bar or in tabs.. This is for website identity.

The following code should be in style tag.

<link rel="icon" type="image/png" href="">

if the favicon image is .ico format, then follow the below code.

<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

Once you have created a favicon.ico file, you simply upload it to the root directory and add these two lines of coding to your webpage, making sure they go into the <head> section of your coding.

Leave a Reply

Your email address will not be published. Required fields are marked *