Reputation: 1931
As stackoverflow.com has logo with it's title, how it can be done for any usual site? Which code is needed for this?
Upvotes: 18
Views: 175110
Reputation: 1
I was also having the same problem, but its actually a favicon.ico file that you can have. Google favicon.ico generator and either download premade favicons or make your own. And then after insert the following code:
inside the head tag.
Upvotes: 0
Reputation: 91
Yes you right and I just want to make it understandable for complete beginners.
<link rel="shortcut icon" href="images/favicon.ico" />
and past it without any changes in between <head>
opening and </head>
closing tag.Upvotes: 9
Reputation: 22984
It's called a favicon. It is inserted like this:
<link rel="shortcut icon" href="favicon.ico" />
Upvotes: 0
Reputation: 1957
Put this in the <head>
section:
<link rel="icon" href="http://www.domain.com/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://www.domain.com/favicon.ico" type="image/x-icon" />
Keep the picture file named "favicon.ico". You'll have to look online to get a .ico file generator.
Upvotes: 0
Reputation: 10543
Are you referring to the favicon?
Upload a 16x16px ico to your site, and link it in your head
section.
<link rel="shortcut icon" href="/favicon.ico" />
There are a multitude of sites that help you convert images into .ico format too. This is just the first one I saw on Google. http://www.favicon.cc/
Upvotes: 36