A logo can be considered page content without needing a heading tag. The discussions cited here do not agree on whether a logo counts as content, but using H1 for the page title does not mean the logo should use H2. Their advice on markup semantics is to distinguish the page title from the site’s identity: if the logo simply represents the site, consider placing it in a regular div or an HTML5 header rather than treating it as a heading.
Whether a logo is content depends on how its role is understood
One public discussion considers a logo part of the page’s content. Another treats a logo repeated in every page header as a layout detail, with the contributor therefore preferring not to display it with img. That is a design preference, not an official rule against using img for repeated images.
Two questions need to be kept separate: whether a logo counts as content, and whether it should be a heading. Treating a logo as content does not mean it should use H1 or H2.
Using H1 for the page title does not mean the logo should use H2
Responding to the SitePoint layout described by a reader in the discussion, a contributor argues that H1 should be used for the page title and that the title should differ from page to page. The logo or site name is usually not the page title, although the homepage may be an exception. This is a view on markup semantics from a public discussion, not an official HTML specification supplied with the material.
- If the logo serves only to identify the site as a whole, the discussion recommends a regular div or an HTML5 header.
- On the homepage, the site name may also be the page title, so the reasoning used for internal pages may not apply in the same way.
- Knowing only that “the logo uses H2” is not enough to judge whether the site’s overall heading structure is appropriate.
Image presentation and heading levels are separate questions
Another discussion notes that an image can be displayed as a background image rather than with img, but the contributor argues against using it as the background of an H1. This is an opinion from that discussion, not a blanket ban on displaying logos as background images. How to display a logo should also be considered separately from whether it counts as content.
The structured data logo property is a separate layer of markup
Beyond the page’s HTML markup, structured data provided to search services also has settings for logos. The Google documentation excerpt cited here describes the logo property for Organization, which accepts a URL or ImageObject. The image must be at least 112 × 112 pixels, its URL must be crawlable and indexable, and the file must use a supported format. The documentation also advises checking how the logo looks against a pure white background.
When using ImageObject, you must provide a valid contentUrl or url, and the image must meet the requirements above. These requirements apply to structured data for organization logos; they do not determine whether a logo on a page should use H1, H2, or another HTML container.
Logo markup Q&A: perspectives from the web
Can the image property of a carousel item contain a logo?
According to the supplied Google documentation excerpt, logos should not be included in the shared image property for LocalBusiness, Product, or Event carousel items. Images should match the entity or item being marked up, their URLs must be crawlable and indexable, and their files must use a supported format. This restriction applies to the image property for that carousel and should not be extended into a general rule for all structured data image properties.
References
- 機構結構定義標記 | Google 搜尋中心 | Documentation | Google for Developersdevelopers.google.com — Source used in the article above.
- 輪轉介面 (Beta 版) 結構化資料 | Google 搜尋中心 | Documentation | Google for Developersdevelopers.google.com — Discusses: Can the image property of a carousel item contain a logo?
- H1 vs H2 vs Other for website title/logo and SEOwebmasters.stackexchange.com — Source used in the article above.
- H1 vs H2 vs Other for website title/logo and SEOwebmasters.stackexchange.com — Source used in the article above.
- H1 vs H2 vs Other for website title/logo and SEOwebmasters.stackexchange.com — Source used in the article above.
