Changing in the top of the browser using HTML (favicon)
How do you change the small image showed in a browsers tab when viewing image using HTML? Sorry, I am new to programming开发者_如何学Go.
The small image is what I am talking about.
it's called a favicon:
place the favicon.ico file in the www root and use the following code:
<link rel="shortcut icon" href="/favicon.ico">
Insert the following line in <head>
tag
<link href="Images/tsp1.png" rel="shortcut icon" type="image/x-icon" />
Replace Images/tsp1.png
with an image of your choice, make it somting like a 16x16 image
This is the Favicon. Have a look at the whikipedia article: http://en.wikipedia.org/wiki/Favicon
Have an image in ico format with name favicon.ico in the root of your site. Search for favicon.ico for more information.
It's called a favicon.
<link rel="shortcut icon" href="http://www.example.com/myicon.ico">
精彩评论