Technical SEO in HTML
Goal
Make sure search engines can fetch, render, understand and index each page as intended. A good result lists concrete markup defects with fixes and does not promise rankings.
When to use
- The user asks for an SEO check of a page, template or whole site.
- Pages are missing from search, show wrong snippets or duplicate each other.
- For performance signals such as LCP, use
use_skillwithweb-vitals-fix. - For heading and landmark quality for assistive tech, use
use_skillwithaccessibility. - A site relaunch or migration is planned and URLs will change.
- Search results show the wrong title, description or image for a page.
Steps
- Get the page as a crawler would. For a live URL use
read_urland also fetch the raw HTML withrun_commandand a command line fetch tool. For local code useread_fileon the templates and layout. - Compare raw HTML with the rendered page using
browser_navigateandbrowser_get_text. If key content or links exist only after JavaScript runs, flag it. - Check the head: one
<title>that is unique and describes the page, a meta description that summarizes it,<html lang>, and the viewport tag. - Check indexing controls: canonical link pointing to the preferred absolute URL, robots meta tags,
robots.txtrules and the sitemap reference. Fetch/robots.txtand the sitemap withread_url. - Check the body: a single logical
h1, ordered headings, descriptive link text, images withaltand dimensions, and internal links that are real anchors withhref. - Check social and structured data: Open Graph tags and any JSON-LD. Validate that the JSON parses and that the data matches visible content. Check the current supported types with
search_webbecause search engines change them. - Check status behaviour: redirects, trailing slash consistency, a real 404 status for missing pages, and duplicate paths for the same content.
- Fix template-level issues with
edit_fileso every page benefits, then re-fetch to confirm. - For a migration, build a redirect map from old to new URLs and check that each redirect is a single permanent hop with
run_commandand a header-only fetch. - Check international setups:
hreflangpairs must be reciprocal and use the exact canonical URLs of each version.
Gotchas
- A
noindextag or a blocking robots rule copied from staging is a classic cause of vanished pages. Check it first. - A canonical that points to the home page, or to a different URL than the one served, tells engines to ignore the page.
- Blocking a path in
robots.txtstops crawling but does not remove it from the index. A page that must not appear needsnoindex, and it must stay crawlable to be seen. - Structured data that describes content not visible on the page violates guidelines and can lose rich results. Mark up only what users can see.
- Client-rendered titles and descriptions may not be seen by every crawler. Prefer them in the initial HTML.
- Duplicate titles across a template (every product page called "Product") are common. Build titles from page data.
- Redirect chains and loops waste crawl budget and dilute signals. Collapse each old URL to one hop.
- Infinite scroll without paginated URLs leaves later content unreachable for crawlers. Provide linkable page URLs.
- Search engines may show a different title than the one in the tag if it looks misleading or too long. Edit the tag but do not expect control.
Output
- A defect list ranked by impact: location, what is wrong, the fix.
- The template changes made, with the pages they affect.
- A statement that no ranking outcome is guaranteed, and which checks need real search console data from the owner.
- List the pages you could not fetch or render and the reason.
