How to display the web page icon in the browser?

 Posted by Raja on 3/5/2009 | Category: HTML 5 Interview questions | Views: 7063

By placing the link tag inside the <head></head and specify rel value as "shortcut icon", you can display the page icon in the browser.

<link rel="shortcut icon" href="/images/myicon.gif" />

Here, you can either specify .gif, .jpg or .ico file, however many browser only support .ico file not .gif or .jpg file.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response