Logo links to the homepage

How the scan finds the header logo and tests whether it links home, why it only warns and never fails, and how to link it correctly.

What AuditX checks

The scan opens the page you scanned in a browser at desktop size (1440 by 900 pixels), or at phone size (390 by 844) if the desktop view failed. It looks for the logo among images and SVGs in the header, elements whose class or id contains logo, and images inside a link to /. The element must be visible, within the first 400 pixels of the page, not inside a button and not part of a cookie banner. It prefers an element with logo in its class, id, alt text or label, and otherwise one at least 48 pixels wide, so a small menu or search icon is not taken for the logo. It then looks for a link around the logo or inside it. The logo counts as linked home when the link is on your own host and points to /, to a language home such as /nl/ or /en-gb/, to the page you scanned, to a path such as /home, /homepage, /index.html or /startseite, or when its aria-label or title contains a word like home. When the logo it picked does not go home, it also accepts another link in the header with logo or brand in its class or id that does, such as the brand link of the site under a parent-company logo bar. The check passes in that case. It also passes when the logo is not a link and the scanned page is itself a homepage, since clicking would only reload the page. If no logo is found, or the page could not be measured, the result is an info note, which does not lower the score. In every other case it warns. It never fails. If the page has no logo in the header, for example because it is a background image, the scan cannot test it. The scan does not click the link.

Why it matters

Nielsen Norman Group calls a logo that links to the homepage a long-standing web convention that reduces confusion, because people have learned to click it to get back to the start. It also says the convention is not understood by everyone.

For a logo inside a link, the W3C accessibility tutorial says the text alternative should name the destination, for example "W3C home", not describe the picture.

How to fix it

  1. Wrap your header logo in a link with href="/" so that it takes visitors to your homepage from every page.
  2. Give the logo image an alt text that names the destination, such as "Example Heating home".
  3. Consider adding a plain Home link in the menu as well. Nielsen Norman Group recommends both.
  4. If your homepage address is not /, for example /en/, link to that address.
<a href="/"><img src="/logo.svg" width="160" height="48" alt="Example Heating home"></a>

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.