Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
315 views
in Technique[技术] by (71.8m points)

favicon - How do I put image in url in HTML?

How do I put image in url in HTML? Just left of the address bar.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Take a look at the wikipedia entry for favicon - http://en.wikipedia.org/wiki/Favicon

The format for this is an .ico file and you need to place this in the root folder of your webserver.

For more advanced scenarios, you can also have a different icon per page by using:

<link rel="shortcut icon" href="http://www.example.com/myicon.ico" />

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...