Answer: 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