0

I want to upload a favicon for my HTML/CSS website, I used:

<link rel="icon" href="favicon.ico">

But it doesn't work. Here are my project folders:

Ghazi Aldeeb
    Resources
        Images
            favicon.ico
    Scripts
        CSS
            stylesheet.css
        HTML
            index.html
0

2 Answers 2

0

Try this:

 <link rel="icon" href="../Images/favicon.ico">
0
0

You have to specify all the directory. In your case (if the html file is into the folder "Ghazi Aldeeb"),

<link rel="icon" href="/Ghazi Aldeeb/Resources/Images/favicon.ico">
1
  • I tried that, it didn't work
    – galdeeb
    Feb 18, 2021 at 15:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.