32

I would like to know what is this little icon called? And how to set the icon for that? Thanks.enter image description here

DNB5brims
  • 29,344
  • 50
  • 131
  • 195

3 Answers3

38

View source on SO, and you will see this link element:

<link rel="shortcut icon" href="http://cdn.sstatic.net/stackoverflow/img/favicon.ico">
dan radu
  • 2,772
  • 4
  • 18
  • 23
  • 1
    This works to change the tab icon, but it never changes my URI bar (as Ted Wong's picture above). Are the tab and URI icons not related? Are they not suppose to be set together with your tag? Tried in both Chrome and Firefox, same results. – Jeach Mar 01 '14 at 01:53
  • 2
    Ah, you can find a table of supported favicon locations here: http://en.wikipedia.org/wiki/Favicon#Use_of_favicon – Jeach Mar 01 '14 at 02:12
  • @Jeach that's an older browser. (looks like an old version of safari) It may put the favicons in the URI bar, instead of the tabs. (which it doesn't even appear to have...) – jgh fun-run Feb 27 '20 at 16:59
14

It's called the icon of your web-page. To include this in page use

<link rel="shortcut icon" href="favicon.ico" />

you insert this tag with in head tag and can be easily created using ms paint

Ravi Jain
  • 1,452
  • 2
  • 17
  • 41
3

Probably you will be suffering after changing the favicon more than once, just keep that in mind; after every change of ico file change the href="favicon.ico?v=# -# means count of change-.

ozanmuyes
  • 721
  • 12
  • 26