问题
I noticed that Future Friendly's source code doesn't contain any code for their favicon. Yet, there is a blue star as their favicon in my browser's tab. Is this witchcraft?
回答1:
you can just put a favicon.ico
file in the root level of the website. in your sample http://futurefriend.ly/favicon.ico
回答2:
You don't need code to reveal a favicon. Simply add the image to your site root folder and all newer browser (IE 7 +?) find it and show it automatically.
来源:https://stackoverflow.com/questions/8500184/favicon-without-html-code