<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.
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".
HTML <title> Tag.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With