Goal
- Improve the visual identification of the site and its pages.
- Facilitate identification in the browser and the favorites or bookmarks.
- Enable all browsers to display, call and, potentially, memorize the favicon.
Implementation
Depending on the format chosen for the icon and its position, use a link of type:
- <link rel="icon" type="image/png" href="/img/favicon.png"/> (png format, but also jpg, gif, etc.);
- <link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico" /> (Microsoft ico format only recognised by Internet Explorer).
Control
In the source code of each page checked:
- With the help of a web development tool or a code inspector, check that the
link rel
element is in thehead
page header; - Check that the syntax is of the form:
<link rel="icon" type="image/png" href="/img/favicon.png"/> for png format, also jpg, gif, etc.;
ou <link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico" /> for the Microsoft ico format.
Discover Opquast training and certification
The objective of these rules and the Opquast community mission is ‘making the web better’ for your customers and for everyone! Opquast rules cover the key major areas of risk that can negatively affect website users such as privacy, ecodesign, accessibility and security.
Opquast training has already allowed over 19,000 web professionals to have their skills certified. Train your teams, contact us
We offer a 1 hour free discovery module.