I'm getting favicon.ico error

后端 未结 13 1327
一个人的身影
一个人的身影 2020-11-30 19:02

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

13条回答
  •  既然无缘
    2020-11-30 19:41

    Also, be careful so your href location isn't faulty. Study case:

    My index page was in a temporary sub-folder named LAYOUTS. To reach the favicon.png from inside the IMAGES folder, which was a sibling of the LAYOUTS folder, I had to put a path in my href like this

    href="../images/favicon-32x32.png"
    

    Double periods are necessary for folder navigation "upwards", then the forward slash + images string gets you into the images folder (performing a tree branch "jump") and finally you get to reference your file by writing favicon-32x32.png.

    This explanation is useful for those that start out from scratch and it would have been useful to have seen it a couple of times since I would forget that I had certain *.php files outside the LAYOUTS folder which needed different tree hrefs on my links, from the HEAD section of each page.

    Reference the path to your favicon image accordingly.

提交回复
热议问题