June 2025
Beginner
817 pages
31h 30m
English
You’ll certainly have noticed the small icons in the address bar, tab, and/or among your favorites quite often. These icons are called favicons (short for favorite icons). It’s no big deal to add such an icon to the website. They work well as a (re)identifier for your website. You can specify them in the header of your document using the link element, which is described in detail in Chapter 3, Section 3.5.
To do this, you can use the HTML attribute rel with the value icon and the location and name of the icon with href. Optionally, you can use the sizes attribute. The size of a favicon is usually 16 × 16 and sometimes 32 × 32 pixels. Moreover, favicons should be saved in .ico format. If you use ...
Read now
Unlock full access