When a page is not performing in search, one of the first useful steps is also one of the simplest: look at what the page actually sends to a browser. Many problems that take days to notice in reports, such as an accidental noindex, a canonical pointing at the wrong URL or a missing title, are visible in the source code within seconds.
This guide walks through a practical on-page audit based on a page's HTML: how to get the source, what to check in the head and the body, what each finding means and what to do about it.
Why audit the source rather than the screen
What you see in a browser is the result of HTML, CSS and JavaScript working together. Search engines look at the underlying markup. Several important signals never appear on screen at all:
- the
<title>and meta description - the canonical link
- the robots meta tag
- hreflang alternates
- Open Graph and Twitter tags
- image
altattributes
A page can look perfect to visitors while telling search engines not to index it.
How to get a page's HTML
- Open the page in a desktop browser.
- Press Ctrl+U (Windows, Linux) or Cmd+Option+U (Mac) to view the source.
- Press Ctrl+A / Cmd+A to select everything, then copy.
This is the HTML the server sent before any JavaScript ran. For sites that build their content with JavaScript, the rendered HTML can differ. The URL Inspection tool in Google Search Console shows the version Google rendered, which is the definitive view for Google.
The head: tags to check
Title
There should be exactly one <title>, it should describe the page, and it should be unique on the site. Very short titles waste space; very long ones are cut in results.
Meta description
One description, written as a sentence, roughly 70-160 characters. Missing or duplicate descriptions are common in templates.
Canonical
<link rel="canonical" href="..."> tells search engines which URL is the preferred version. It should be an absolute URL, usually the page's own clean address. Two canonicals, or a canonical pointing at a different page by mistake, are serious problems: search engines may ignore conflicting hints or index the wrong URL.
Meta robots
<meta name="robots" content="noindex"> removes a page from search. It is often left behind from a staging site. If there is no robots meta tag, the default is index, follow.
Viewport, charset and language
A viewport tag is needed for proper mobile display. A declared character set prevents garbled characters. The lang attribute on <html> states the page's language for browsers, screen readers and search engines.
Social tags
og:title, og:description and og:image control how the link looks when shared. twitter:card sets the card type on X.
hreflang
On multilingual sites, <link rel="alternate" hreflang="..."> links point to each language version. The set should include the page itself and usually an x-default.
For a broader overview of which head tags a page needs in the first place, see which meta tags does a web page need.
The body: structure and images
Headings
A page normally has one H1 that states its main topic, followed by H2s for sections and H3s for sub-sections. Skipping levels (an H4 directly under an H1) is not an error for search engines, but it often signals headings chosen for their size rather than their meaning, which also affects screen-reader users.
Image alt text
Every <img> should have an alt attribute. Informative images need a short description; purely decorative images should have an empty alt="" so screen readers skip them. Missing alt attributes are an accessibility problem and a missed chance to describe images to search engines.
Amount of text
Word count is not a ranking factor in itself, but a page with only a few dozen words may not answer a question fully. Treat a low count as a prompt to review the content, not a rule.
Run the audit with our analyzer
The Meta Tag Analyzer runs these checks on pasted HTML. Browsers block web pages from fetching other sites, so the tool works on source you paste or open, and it never runs the page's scripts.
- Open the Meta Tag Analyzer. A sample page is loaded; press Clear to empty the box.
- Paste the source into Page HTML source, or use Open .html to load a saved file.
- Read the summary tiles: Checks passed (a percentage), Words, Headings and Images without alt.
- Work through the Checklist tab. Failures (such as a missing title or a
noindex) come with a short explanation; warnings cover things like a relative canonical, missing viewport, skipped heading levels or missing Open Graph tags. - Open Meta tags to see every meta tag and the canonical in a table.
- Use Headings to see the outline indented by level, and Images to list the files that have no alt attribute.
- If the page has language alternates, the hreflang tab lists them, and the checklist confirms whether x-default and a self-reference are present.
Other ways to audit
Browser developer tools. The Elements panel shows the rendered DOM after JavaScript, which is useful for client-side apps. It is more detailed but slower to review than a checklist.
Search Console URL Inspection. Shows whether Google can index the page, which canonical it chose and the rendered HTML. It is the authority for Google, but only for your own verified sites.
Site crawlers. For more than a handful of pages, a crawler checks titles, canonicals and headings across the whole site and finds duplicates. Use a single-page analyzer to understand and fix issues, and a crawler to find where they occur.
Fixing what you find
- Too-long titles or descriptions: refine them with the Title Tag Checker and Meta Description Checker.
- Missing head tags: generate a complete set with the Meta Tag Generator.
- Missing social tags: build them with the Open Graph Generator.
- Accidental noindex: remove it from the template or CMS setting, then request indexing in Search Console.
- Wrong canonical: fix the template so each page points to its own preferred URL.
Frequently asked questions
Can the tool analyse a URL directly?
No. Browsers block one website from downloading another site's pages. Open the page, view its source, and paste it in.
Is it bad to have more than one H1?
It is allowed in HTML, and search engines cope with it. One clear H1 is still easier for users and assistive technology to understand.
What is the difference between noindex and robots.txt?
noindex tells search engines not to show a page in results, and they must crawl the page to see it. robots.txt controls crawling. A page blocked in robots.txt cannot have its noindex read.
Should decorative images have alt text?
They should have an empty alt="" attribute. That tells screen readers to skip them, which is better than a missing alt or a meaningless description.
Why does the source differ from what Google sees?
If the page builds content with JavaScript, the initial source can be incomplete. Google renders JavaScript, so check the rendered HTML in Search Console for the full picture.