Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get my page title to have an icon?

Tags:

html

icons

I would like to have my site’s logo shown in the icon area of the title rather than the default white document. Exactly as Stack Overflow has it.

like image 231
littlechris Avatar asked Sep 13 '09 11:09

littlechris


People also ask

How do I add an icon to my website title?

To add a favicon to your website, either save your favicon image to the root directory of your webserver, or create a folder in the root directory called images, and save your favicon image in this folder. A common name for a favicon image is "favicon. ico".

How do you add an icon to a page?

To insert an icon, add the name of the icon class to any inline HTML element. The <i> and <span> elements are widely used to add icons. All the icons in the icon libraries below, are scalable vector icons that can be customized with CSS (size, color, shadow, etc.)


1 Answers

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

add this to your HTML Head. Of course the file "favicon.ico" has to exist. I think 16x16 or 32x32 pixel files are best.

like image 144
NiklasMM Avatar answered Oct 12 '22 05:10

NiklasMM