Page basics: title, description, viewport, and icon
Want this checked on your own domain?
Join the waitlistUpdated
Message for whoever manages your website
Hi, could you check our homepage’s basic tags?
- A descriptive title, and a meta description of one or two sentences.
- A mobile viewport tag.
- A lang attribute on the html element.
- A site icon declared with a link tag.
- If there is a canonical link, that it points to the homepage’s own https:// address.
Thank you.
Want this checked on your own domain? Join the waitlist.
Check yours
Run the full report (join the waitlist for access). It reads the homepage visitors end up on after any redirects and lists anything missing.
Fix it
All of these live in the page’s <head>. On a site builder or CMS, look for the site’s SEO, search, or general settings rather than editing code. A complete head for a small business homepage looks like this:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example Bakery: sourdough and cakes in Springfield</title>
<meta name="description" content="Sourdough, pastries, and custom cakes baked daily in Springfield. Open Tuesday to Sunday, 7 a.m. to 3 p.m.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/favicon.png">
<link rel="canonical" href="https://example.com/">
</head>
The homepage has no title
What it means. The page has no <title> element, or it is empty.
Why it matters. Browsers show the title in the tab and window title bar. Google uses the <title> element as one of several sources for the headline of your search result, its title link; without it, Google builds the headline from other text such as the main heading or links pointing to the page. Reading the page title is a common way for people using screen readers to find their place (MDN), and WCAG makes a descriptive title a Level A requirement (Success Criterion 2.4.2).
Fix. Add exactly one <title> to the head; HTML allows no more than one (WHATWG HTML §4.2.2). Google’s guidance for good titles:
- describe the page; on the homepage, name the business and say what it does;
- avoid vague titles such as “Home”;
- avoid repeating keywords;
- keep it concise: there is no length limit, but Google truncates it to fit the device;
- write it in the same language as the page.
Confirm. The browser tab shows the new title, and the report no longer lists it. Google picks up the change when it next crawls the page, which can take from a few days to a few weeks.
No search description
What it means. The page has no <meta name="description">, or it is empty.
Why it matters. Google writes the text under your search result, the snippet, mainly from the page’s content, and uses the meta description when it describes the page better than the content does. Without one, Google can only use text from the page. The HTML standard defines the description as text suitable for a directory of pages, “e.g. in a search engine” (WHATWG HTML §4.2.5.1).
Fix. Add one <meta name="description"> with a short summary of the business: what it offers, where, and anything a searcher needs to decide, such as opening hours. Google’s guidance:
- write a summary, not a list of keywords;
- there is no length limit, but Google truncates the snippet to fit the device;
- give each page its own description; the homepage gets a site-level one.
Confirm. The report no longer lists it. Google may still show text from the page for some searches; that is its choice per search.
The page isn’t set up for phones
What it means. The page has no <meta name="viewport"> tag. Without it, some mobile browsers lay the page out in a virtual window wider than the screen and shrink the result to fit, so text is tiny until the visitor zooms in (MDN).
Why it matters. Visitors on phones can get a shrunken desktop page. Google indexes and ranks the mobile version of a site’s content (mobile-first indexing), recommends responsive design, and lists “Does your content display well on mobile devices?” among the questions it asks about page experience.
Fix. Add this tag to the head:
<meta name="viewport" content="width=device-width, initial-scale=1">
width=device-width sets the layout width to the screen’s width; MDN notes initial-scale=1 is usually unnecessary but keeps the page from starting zoomed out when content overflows. Don’t add user-scalable=no: MDN warns it prevents people with low vision from reading the page. The tag only sets the width; if the layout uses fixed widths wider than a phone, it still overflows and the layout itself needs to adapt.
Confirm. Open the homepage on a phone: text is readable without zooming and nothing scrolls sideways. The report no longer lists it.
The page doesn’t declare its language
What it means. The <html> element has no lang attribute, so the page’s language is unknown to software (MDN).
Why it matters. Screen readers use it to load the right pronunciation rules, and browsers use it to display characters correctly; WCAG makes it a Level A requirement (Success Criterion 3.1.1). It doesn’t affect Google Search, which says it determines a page’s language from its visible content and doesn’t use lang attributes.
Fix. Add a language tag (a BCP 47 code) to the <html> element, such as en, en-US, fr, or de-CH:
<html lang="en">
On a site builder, set the site language in its settings. If parts of the page are in another language, mark those elements with their own lang (WCAG Success Criterion 3.1.2).
Confirm. The page source starts with <html lang="…">, and the report no longer lists it.
No site icon
What it means. The page doesn’t declare an icon with <link rel="icon"> (or shortcut icon, apple-touch-icon, or apple-touch-icon-precomposed). If there is an image at /favicon.ico, browsers still find it; the report says which case applies.
Why it matters. Browsers show the icon in tabs and bookmarks. Google Search can show it next to your results. To make a site eligible for that, Google asks for a link tag on the home page.
Fix.
- Make a square image. Google requires at least 8×8 pixels and recommends larger than 48×48. Google Search accepts BMP, GIF, ICO, PNG, JPEG, PPM, and TIFF.
- Upload it and add a link to the homepage’s head, such as
<link rel="icon" href="/favicon.png">. On a site builder, use its site icon or favicon setting. - Keep the icon’s address stable, and don’t block it or the homepage in robots.txt; Google’s image crawler must be able to fetch it.
Google shows one favicon per hostname, so www.example.com and shop.example.com can have different icons, but example.com/shop can’t.
Confirm. The browser tab shows the icon, and the report no longer lists it. Google says crawling can take from several days to several weeks.
The page tells search engines its real address is elsewhere
What it means. The homepage’s <link rel="canonical"> points to a different scheme or host from the address visitors end up on: for example http:// instead of https://, www.example.com instead of example.com, or a staging or old domain.
Why it matters. Google treats rel="canonical" as a strong signal for which address to show in search results, so it may index and show the other address instead of yours.
Fix.
- Set the canonical link to the page’s own final address, in full, starting with
https://. Google recommends absolute addresses and a canonical link on the canonical page itself. - On a CMS, the canonical link may come from a site address setting; if so, correct that setting rather than the tag.
- Make your redirects agree. If
www.example.comredirects toexample.com, the canonical should nameexample.com. Google warns against giving different canonical addresses through different methods.
Confirm. The report no longer lists it.
Technical reference
| Element | Rule | Source |
|---|---|---|
<title> | At most one per document; text only | WHATWG HTML §4.2.2; MDN |
<meta name="description"> | Free-form description of the page, at most one per document | WHATWG HTML §4.2.5.1 |
<meta name="viewport"> | Comma-separated key=value list; width=device-width recommended | MDN |
lang | A single BCP 47 tag; empty means unknown; inherited by descendants | WHATWG HTML §3.2.6.2; MDN |
<link rel="icon"> | Without one, browsers may fetch /favicon.ico | WHATWG HTML §4.6.8.9 |
<link rel="canonical"> | Accepted by Google only in the <head>; absolute URLs recommended |
Google builds title links from, among other sources: the <title> element, the main visual title, heading elements, og:title, other prominent text, anchor text on the page and in links to it, and WebSite structured data. It may rewrite a title that is empty in part, out of date, or doesn’t match the page’s language.
What the report checks
The report reads the final homepage after redirects, when it answers 200 with HTML and the site doesn’t forward to another domain.
| Check | Passes when | Otherwise |
|---|---|---|
| Title | The first <title> has text | The homepage has no title |
| Description | <meta name="description"> has content | No search description |
| Viewport | A <meta name="viewport"> with content exists | The page isn’t set up for phones |
| Language | <html> has a non-empty lang | The page doesn’t declare its language |
| Icon | A link with rel containing icon, apple-touch-icon, or apple-touch-icon-precomposed | No site icon |
| Canonical | The first canonical link has the same scheme and host as the final address | The page tells search engines its real address is elsewhere |
Without a link tag, the report also checks /favicon.ico, because browsers fetch it by default, and says so; Google’s steps to be eligible for an icon in Search still include the link tag. The canonical check compares only scheme and host, not the path.
When the homepage isn’t a web page
If the homepage answers 200 with a file that isn’t text, such as a PDF or a PNG image, these checks can’t run, and the report says so. A homepage served as plain text or another text format that isn’t HTML gets no result from these checks. Serve an HTML homepage at the address visitors use.
Sources
- Google Search Central, Influencing your title links in search results
- Google Search Central, Control your snippets in search results
- Google Search Central, Define a favicon to show in search results
- Google Search Central, How to specify a canonical URL with rel="canonical" and other methods
- Google Search Central, Mobile site and mobile-first indexing best practices
- Google Search Central, Understanding page experience in Google Search results
- Google Search Central, Managing multi-regional and multilingual sites
- WHATWG HTML Living Standard, Document metadata (title, meta)
- WHATWG HTML Living Standard, The lang and xml:lang attributes
- WHATWG HTML Living Standard, Link type "icon"
- MDN, <meta name="viewport">
- MDN, <title>: The Document Title element
- MDN, lang global attribute
- W3C, Understanding WCAG 2.2 Success Criterion 2.4.2, Page Titled
- W3C, Understanding WCAG 2.2 Success Criterion 3.1.1, Language of Page
Want this checked on your own domain?
Join the waitlist