How do I add image in title bar?
I have title- "Webnet"
Merging it with a FontAwesome Glyphicon's icon images as-
<title><i class="icon-user icon-black"></i>Webnet</title>
And I tried it replacing with image source-
<title><img src="assests/img/user-Hermosillo.png" ></img>Webnet</title>
But title shows innerHTML instead of showing image there.
Any help?
This question is related to
html
css
favicon
font-awesome
glyphicons
You'll have to use a favicon for your page.
put this in the head-tag:
<link rel="shortcut icon" href="/favicon.png" type="image/png">
where favicon.png is preferably a 16x16 png image.
you should be searching about how to add favicon.ico
. You can try adding favicon.ico
directly in your html pages like this
<link rel="shortcut icon" href="/favicon.png" type="image/png">
<link rel="shortcut icon" type="image/png" href="http://www.example.com/favicon.png" />
Or you can update that in your webserver
. It is advised to add in your webserver
as you don't need to add this in each of your html
pages (assuming no includes
).
To add in your apache
place the favicon.ico
in your root website director and add this in httpd.conf
AddType image/x-icon .ico
Add this in the head section of your html
<link rel="icon" type="image/gif/png" href="mouse_select_left.png">
Source: Stackoverflow.com