How to SEO a Website: A Step-by-Step Guide for Google and AI Search

Most "how to SEO a website" guides hand you a list of 50 tactics with no order and no way to tell which ones matter. The result is busywork: tweaking meta keywords Google ignores while the pages that could bring in customers never get written. This guide does the opposite. It gives you ten steps in the order that pays off, grounded in what Google's own documentation says, and updated for a search world where AI answers sit above the links.

To SEO a website, make sure search engines can crawl and index it, research the words your audience uses to search, organize the site so each important topic has one clear page, optimize titles, headings and content on each page, keep the site fast and mobile friendly, earn links and mentions from relevant sites, and measure results in Google Search Console. The same foundations help your pages appear in AI answers from Google, ChatGPT and other assistants.

SEO, or search engine optimization, is the work of helping search engines understand your content and helping people find it. Google says changes can take effect in a few hours or take several months, so expect steady progress rather than overnight results (Google SEO Starter Guide).

Ten-step process for SEO on a website in three phases: foundations, covering 1 get indexed, 2 research searches and 3 plan site structure; pages, covering 4 optimize each page, 5 create helpful content and 6 fix technical health; growth, covering 7 earn links and mentions, 8 local SEO if relevant, 9 optimize for AI search and 10 measure and improve
The ten steps in this guide, grouped into foundations, pages and growth.

Step 1: Make Sure Google Can Find and Index Your Site

Nothing else matters if Google cannot see your pages. Google lists three minimum technical requirements: Googlebot is not blocked, the page works (returns an HTTP 200 status code) and the page has indexable content. Google also notes that meeting them does not guarantee indexing (Google).

  1. Check the index. Search Google for site:yourdomain.com. If your pages appear, you are in the index.
  2. Set up Google Search Console. It is free and shows which pages are indexed, which have problems and which searches bring visitors. Use the URL Inspection tool to check individual pages.
  3. Submit an XML sitemap. A sitemap lists the pages you want indexed. Most website platforms create one automatically; submit its URL in Search Console.
  4. Check robots.txt and noindex tags. Make sure you are not blocking pages you want in search, a common leftover from a site that was built on a staging server.

Step 2: Research What Your Audience Searches

Google advises using "words that people would use to look for your content" and placing them in prominent spots such as titles and headings (Google Search Essentials). Keyword research is how you find those words.

A clear structure helps both visitors and search engines understand what matters on your site. Group pages into logical sections (services, locations, guides) and link related pages together.

Step 4: Optimize Each Page

On-page SEO means making each page clear about what it covers. These are the elements that matter most:

Diagram mapping a search result and a web page to the on-page elements behind them: the title link comes from the title element, the green URL from a readable URL, the description snippet usually from page content or the meta description, and on the page itself one clear H1, descriptive H2 headings, helpful body content, images with alt text, internal links and structured data
What searchers see in results comes from elements you control on the page.
ElementWhat to do
Title elementUnique to each page, clear, concise and accurate. Google's Starter Guide says a good title "accurately describes the contents of the page." Put the main topic near the start.
Meta descriptionShort, unique and focused on the most relevant points of the page. Google often builds the snippet from page content instead, but a good description gives it a strong option.
HeadingsOne H1 that states the page's topic, then H2 and H3 headings that outline the content in plain language.
Body contentAnswer the searcher's question early, then go deeper. Use the words your audience uses naturally; Google treats excessive keyword repetition as spam.
ImagesDescriptive file names and alt text that explain the image's relationship to the content. For video, see our video SEO guide.
Structured dataSchema markup (for example Organization, LocalBusiness, Product, Article or FAQ) helps search engines understand the page and can make it eligible for rich results. It must match visible content.

Two things you can skip: Google does not use the meta keywords tag, and there is no ideal word count; length alone does not affect rankings (Google SEO Starter Guide). For structured data in depth, see our guide to schema and entity optimization.

Step 5: Create Helpful Content

Google's ranking systems aim to reward helpful, reliable, people-first content: content created to help people rather than to manipulate rankings. In practice that means:

Step 6: Fix Technical Health and Page Experience

Google uses the mobile version of a site's content, crawled with its smartphone agent, for indexing and ranking, so your mobile pages should carry the same primary content, headings, structured data and meta tags as desktop (Google).

Speed and stability matter too. Google's Core Web Vitals measure loading, responsiveness and visual stability. To be rated "good," a page should meet all three targets at the 75th percentile of page loads (web.dev):

Core Web Vitals good thresholds: Largest Contentful Paint, measuring loading, within 2.5 seconds; Interaction to Next Paint, measuring responsiveness, 200 milliseconds or less; Cumulative Layout Shift, measuring visual stability, 0.1 or less; all measured at the 75th percentile of page loads on mobile and desktop
The three Core Web Vitals and their "good" thresholds. Source: web.dev.

Check them in Search Console's Core Web Vitals report or PageSpeed Insights, and see our guide to advanced Core Web Vitals for diagnosing and fixing each metric. Other technical basics: serve the site over HTTPS, fix broken links and redirect chains, and use redirects or canonical tags for duplicate pages. Google says duplicate content is not a spam violation, but it can waste crawling resources.

Links from other relevant websites remain one of the ways search engines discover pages and judge their importance. Google's own advice is simple: "tell people about your site" and promote it in communities where it is relevant (Google Search Essentials).

Avoid buying links or joining link exchanges built to manipulate rankings. Google's spam policies treat link schemes as a violation that can lower rankings or remove pages from results. Be equally wary of "free blog upload" and guest post sites: our UploadBlog.com review shows how to check whether a site's links are worth anything before you pitch it.

Step 8: Add Local SEO If You Serve a Local Area

If customers visit you, or you travel to them, local SEO decides whether you appear in the map pack. Google says local results are based mainly on relevance, distance and prominence. Claim and complete your Google Business Profile, keep your name, address and phone number consistent everywhere, collect genuine reviews and create a page for each service and area you genuinely serve. Our industry guides show how this works for specific businesses, and our guide to local SEO for ecommerce covers online stores.

Search now often starts with an AI answer. In a Pew Research Center study of 900 US adults' browsing in March 2025, users clicked a traditional search result in 8% of visits to Google results pages that included an AI summary, compared with 15% when there was no summary, and clicked a link inside the summary in about 1% of visits (Pew Research Center).

Google says there are no special requirements to appear in AI Overviews or AI Mode beyond the fundamentals in this guide. To improve your chances of being cited by AI assistants:

Our guides to GEO vs SEO, getting recommended by ChatGPT and Grok SEO go deeper, and our State of AI Search and LLM Marketing 2026 report summarizes the research.

Step 10: Measure and Improve

SEO is a cycle, not a project. Review these monthly:

Then act on what you find: improve pages that rank on page two, update outdated content, merge pages that compete with each other and build new pages for questions you do not yet answer.

Common SEO Mistakes to Avoid

Frequently Asked Questions

How do I SEO my website for free?

Most core SEO work is free: set up Google Search Console, submit a sitemap, research what your customers search, write clear titles and helpful pages, link related pages together, keep the site fast and mobile friendly, and claim your Google Business Profile if you serve a local area. Paid tools and services mainly save time and add data.

How long does it take for SEO to work?

Google says some changes take effect in a few hours and others take several months. New sites and competitive topics usually take longer. Measure progress in Search Console over weeks and months rather than days.

What are the most important SEO factors?

Google does not publish a ranked list, but its documentation stresses crawlable, indexable pages, helpful people-first content, the words people actually search for in titles and headings, crawlable internal links, a good mobile experience and links or mentions from relevant sites.

Do I need a blog for SEO?

Not necessarily. You need pages that answer the questions your customers search. For many businesses, strong service, product and location pages matter more than a blog. A blog helps when your audience researches problems before buying.

Yes. AI answers reduce some clicks, but Google says its AI features rely on the same fundamentals as regular search, and other AI assistants draw on content they find on the web. Strong SEO is the foundation for being cited in AI answers as well as ranking in traditional results.

Where to Start

Start with Step 1 today: run a site: search and set up Search Console. Then list the 10 questions your customers ask most, check whether you have a clear page for each, and improve or create those pages first. Revisit this guide's steps every quarter.

If you would like a second opinion, book a free call, reach us through the contact page or send your details below. Our founder, Mohd Adil Kazmi, will review your site's indexing, pages and AI visibility and reply with the first fixes worth making. You can also explore our AI SEO and content service, our AI search visibility service or all services.

Free website SEO review

Not sure which SEO fixes to make first?

Send your website and I'll review your Google Business Profile, service pages and AI visibility, then reply personally with the first fixes I would make.

No spam. Your details come straight to me and are never shared.