hey you guys, how where you able to put your icon on the browser search bar?

that was neat, i have a website and i am begining how to do this and i was wondering if you guys can show me how to put an icon image on my browser? i have a favicon.ico image i would like to put on my website of my web site logo.

thanks