-2

I am not able to see the icon beside the title of the webpage...Why is that?

Here is the line of code where I have put it and both the icon and the HTML file are in the same directory -

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
codeboy80
  • 19
  • 7

1 Answers1

1

Check this and have a look at the code below.

<link rel="icon" href="./favicon.ext">
  • 1
    Your contributions are welcome, but please note that answering questions that already have answers on Stack Overflow (like this) is against the guidelines. See the "answer well-asked questions" section of [answer]. Your answer could even get downvoted, even if it is correct! Instead you should flag the question as a duplicate and include the link there, instead of adding it in another answer. – FluffyKitten Aug 31 '20 at 07:24