Adding logo to tab

How do I add my fav icon logo so that it is seen on the top tab in the browser? Also, if I add my site to "homescreen" on mobile so that it is saved to the homescreen like an app, will this favicon be shown?

Thank You.