Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing in the top of the browser using HTML (favicon)

Tags:

html

favicon

How do you change the small image showed in a browsers tab when viewing image using HTML? Sorry, I am new to programming.

alt text

The small image is what I am talking about.

like image 587
Spencer Avatar asked Dec 25 '10 22:12

Spencer


2 Answers

it's called a favicon:

place the favicon.ico file in the www root and use the following code:

 <link rel="shortcut icon" href="/favicon.ico">
like image 150
JMW Avatar answered Nov 02 '22 22:11

JMW


Merry Christmas Dear, here's your solution:

Insert the following line in <head> tag

<link href="Images/tsp1.png" rel="shortcut icon" type="image/x-icon" />

Replace Images/tsp1.png with a image of your choice, make it somting like a 16x16 image

like image 34
Shekhar_Pro Avatar answered Nov 03 '22 00:11

Shekhar_Pro