When designing or coding a website, there is an easy method for including favicons next to the links. You cannot assume that a favicon is always at /favicon.ico of the URL, as there are different ways to specify which favicon a browser should display!

To get the favicon for a domain, use

http://www.google.com/s2/favicons?domain=www.google.de

To get the favicon for an URL, use

http://www.google.com/s2/favicons?domain_url=http%3A%2F%2Fwww.google.de%2F

To see an example how favicons can make a website look more colorful, look on IRCgg.

Are you interested in reading more from CodingClues?
Then subscribe to new postings via RSS or via E-Mail.


0diggsdigg
ShareThis

Glad you liked it. Would you like to share?

Sharing this page …

Thanks! Close

Showing 0 comments

Add New Comment

  • Image
Trackback URL
close Reblog this comment
blog comments powered by Disqus