The ‘rel’ attribute can also be written as ‘rel = icon’.
Hope this helps!
Also, be careful when using relative file paths. If you’re working in vscode, this shouldn’t be an issue because of the code intellisense, but you should still double check to make sure you’re linking the image correctly.
Also favicon images should be small in dimension. 16 pixels in height by 16 pixels in width is the standard. Get bigger than that and things can get messy.
2
Answers
make sure you add the code inside the head tag
make sure your logo.png inside the static folder, and your static folder should be same directory as your index.html
To link a favicon, the code should be as follows.
The ‘rel’ attribute can also be written as ‘rel = icon’.
Hope this helps!
Also, be careful when using relative file paths. If you’re working in vscode, this shouldn’t be an issue because of the code intellisense, but you should still double check to make sure you’re linking the image correctly.
Also favicon images should be small in dimension. 16 pixels in height by 16 pixels in width is the standard. Get bigger than that and things can get messy.