Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add an image in the title bar using html?

Tags:

html

wamp

<DOCTYPE! HTML>
<html>
<head>
    <title>Login</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
    some text

</body>
</html>

This is the code I wrote to add an image in the new tab bar of the browser. But this is not working. I am also using wamp server, if wamp might be causing problems.

like image 799
pro_2911 Avatar asked Jan 03 '14 09:01

pro_2911


People also ask

How do you add an image to a title in HTML?

To add a favicon to your website, either save your favicon image to the root directory of your webserver, or create a folder in the root directory called images, and save your favicon image in this folder. A common name for a favicon image is "favicon. ico".

How do you add a title bar in HTML?

HTML <title> Tag.


1 Answers

I tried in my angular7 project by writing these lines and worked.

<link rel="icon" type="image/x-icon" href="filepath/filename.ico">

please be noted that the image file should be in icon format (.ico)

like image 188
Basil Avatar answered Oct 13 '22 00:10

Basil