HTML Title Image

What you need is a favicon.ico file. Just put it in the root of your site and link to it in the header of your page <head> <title>My Site</title> <link rel=”shortcut icon” href=”https://stackoverflow.com/questions/3103490/favicon.ico” /> </head> You should put it in the root of your site and name it favicon.ico because some browsers look for it … Read more

Favicon with GitHub Pages

Yes, you can. Put this into the head part of your webpage: <link rel=”shortcut icon” type=”image/x-icon” href=”https://stackoverflow.com/questions/35037482/favicon.ico”> It is important to not put the slash before the favicon.ico part. Put the favicon.ico file in your repository’s home directory.

using favicon with css

You can’t set a favicon from CSS – if you want to do this explicitly you have to do it in the markup as you described. Most browsers will, however, look for a favicon.ico file on the root of the web site – so if you access http://example.com most browsers will look for http://example.com/favicon.ico automatically.