Fam Wencong, Kenneth

My Diary

How To Add A Favicon To Your Site

Published: Sunday, January 26, 2020

A favicon is a graphic image (icon) associated with a particular Web page and/or Web site. Many recent user agents (such as graphical browsers and newsreaders) display them as a visual reminder of the Web site identity in the address bar or in tabs.

To add a favicon to your Web site, the image you have chosen must be 16×16 pixels or 32×32 pixels, using either 8-bit or 24-bit colors. The format of the image must be one of PNG, GIF, or ICO. Add the following markup in between the document’s head.

<link rel="icon" type="image/png" href="http://example.com/myicon.png">