There are certain things that, by not doing constantly, I always forget how to do it. And one of them is setting favicon
to my site.
What tags and attributes should I use to correctly define a favicon on my site? (I always forget, but now I will not forget anymore: p)
Another question I'd like to draw is:
- Why, even if I do not set
favicon
, do I always get a 404 error?
Example (with built-in PHP server, but also with other languages and libraries):
After all:
-
Is
favicon
optional or not? -
Does it always need to have that path
/favicon.ico
?