I downloaded the Netbeans IDE to code in HTML. I\'m new to it. When I run my code, chrome is opening and everything is working just fine. I\'m getting some sort of error in
I had a weird situation. Mine was working fine and all of sudden stopped with that error message. I already had the header declaration. So I was dumb founded as to why it wasn't working.
<link rel="shortcut icon" href="favicon.png">
Literally nothing else on the site had an issue that I could tell. The only thing that fixed it for me was to restart my Apache service and all was good again.
if nothing else is working, give that a shot and see what happens.
This problem occurs when you do not declare at the top of your HTML file in HEDER this tag.
<link rel="icon" href="your_address_icon" type="image/x-icon">
The accepted answer didn't work for me so I've found this solution.
It may be related to the HTML version as the most voted solution there states:
If you need your document to validate against HTML5 use this instead:
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
See the link for more info.
For me the answer didn't work too, but this work fine:
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
It's a nightmare since each browser/device handles it differently.
Favicon generator helps me a lot for those applications where we need to cover the most possible scenarios.
https://realfavicongenerator.net/
You just need a png image 260px x 260px (at least) and from there the generator will create all references you need within your web page.
You just need to add this references and images to your application.
I have had this error for some time as well. It might be some kind of netbeans bug that has to do with netbeans connector. I can't find any mention of favicon.ico
in my code or in the project settings.
I was able to fix it by putting the following line in the head
section of my html file
<link rel="shortcut icon" href="">
I am currently using this in my testing environment, but I would remove it for any production environment.