I have added the favicon to my root folder but it doesn't appear on the browser. Do I need any code on the page for it work?
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="favicon.ico">
It can also take a browser a while to catch on to a favicon. Doing something like bookmarking the page can help kick it along.
And Chrome can be particularly stubborn. You can check your favicon is all set up here: http://www.seositecheckup.com/favicon.php
^^^That's pretty nifty.
But yeah, it can take a second for it to populate.