Languages
[Edit]
EN

HTML - set web page favicon

3 points
Created by:
user4838
698

In this article, we would like to show you how to set web page favicon in HTML.

Quick solution:

for *.ico file:

for *.png file:

 

Practical example

Edit

In order to set web page favicon, you need to specify a link element with the href attribute containing path to the new favicon.ico file and put the link inside head section.

 

See also

Edit
  1. HTML / SEO - attach png icons / favicons with different sizes to your webpage

  2. HTML - disable favicon request

References

Edit
  1. <link>: The External Resource Link element - HTML: HyperText Markup Language | MDN

Alternative titles

  1. HTML - change web page favicon
  2. HTML - how to set favicon?
  3. HTML - how to change favicon?
  4. HTML - set web site favicon
  5. HTML - change web site favicon
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join