On-Page SEO: The Complete Guide

Everything Google says about title tags, meta descriptions, headings, images, structured data, and the on-page factors that help search engines understand your content.

Last updated: July 2026 - Sources cited from Google Search Central

On-page SEO helps search engines understand your content. It does not directly determine rankings. Google uses hundreds of signals, and on-page factors are just one category. As Google puts it: "creating content that people find compelling and useful will likely influence your website's presence in search results more than any of the other suggestions in this guide."

What is on-page SEO?

On-page SEO is the practice of optimizing individual web pages so search engines can understand what the page is about and how it fits into the broader site structure. It includes your HTML elements (title tags, headings), content signals (word count, readability), and machine-readable markup (structured data, Open Graph). It does not include off-page factors like backlinks, domain authority, or social signals.

Title Tags: Your Page's First Impression

According to Google's title link documentation, title links are "critical to giving users a quick insight into the content of a result and why it's relevant to their query." The title element is the primary source, but Google may also use headings, Open Graph title, or even anchor text from other pages if your title is missing, generic, or over-optimized.

Best practices for title tags

  • Every page needs a unique title. A site-wide template like {{ site_name }} tells Google nothing about individual pages.
  • Aim for 50-60 characters. Longer than 60 characters may be truncated in search results. Google uses pixel width, not character count, but 60 characters is a safe guideline.
  • Put the primary keyword near the front. Google's neural matching ignores exact word positions, but users scan left-to-right. Your most important term should appear early.
  • Don't stuff keywords. SEO Tips | Best SEO Tips | Free SEO Tips is spam, not helpful. Google explicitly lists keyword stuffing as a spam policy violation.
  • Describe the specific page, not the site. "Contact Us - Acme Corp" is better than "Acme Corporation - Home of the Best Widgets."

Meta Descriptions: Your Elevator Pitch

Google states in their snippet documentation that the meta description tag is one source for the search result snippet - but not the only one. Google may override your description with page content if it's more relevant to the user's query. A good description works like "a pitch that convinces the user that the page is exactly what they're looking for."

Best practices for meta descriptions

  • 120-160 characters. Keep it within the typical display width. Longer descriptions may be truncated.
  • Be specific and compelling. "Learn how to optimize title tags" is better than "SEO tips and tricks."
  • Every indexable page should have one. Missing meta descriptions mean Google generates the snippet itself. You lose control of your message in search results.
  • Meta descriptions do not directly affect rankings. But a well-written description can improve click-through rate, which is a user behavior signal Google may consider.

Heading Structure: Organizing Your Content

Google's SEO Starter Guide says heading order doesn't matter for Google Search, but "it's good to organize your content in a logical way because: brain readers enjoy well-organized content (they are your users), and screen readers and other accessibility tools find organized content easier to navigate."

Best practices for headings

  • One H1 per page. Your H1 should describe what the page is about. While multiple H1s won't hurt rankings, a single clear H1 is the standard.
  • Use H2-H6 for structure. Sub-headings create a content outline. An H3 should fall under an H2, just like this section does.
  • Make headings descriptive, not generic. "Title Tag Best Practices" beats "Best Practices."
  • Don't use headings for styling. If it's not actually a heading for the content that follows, don't use an H-tag.

Structured Data: Speaking Google's Language

Structured data is a standardized format for providing explicit clues about what your page means. Google's documentation includes case studies: Rotten Tomatoes saw a 25% click-through increase, the Food Network gained 35% more visits, and Nestle saw 82% higher CTR after implementing structured data.

Best practices for structured data

  • Use JSON-LD format. Google prefers JSON-LD for structured data. It's simpler to implement and maintain than Microdata or RDFa.
  • Start with the basics. Every site should have Organization (or Person) and WebSite schemas. Content pages should add Article or BlogPosting. Product pages should use Product.
  • Structured data does not directly boost rankings. It enables rich results, which can improve visibility and click-through rates. The ranking signal is indirect.
  • Validate your markup. Use Google's Rich Results Test to verify your structured data is correctly implemented.

Images & Alt Text: Visual SEO

Google's Google Images best practices recommend using descriptive file names, alt text, and surrounding content to help Google understand your images. Alt text is also critical for accessibility - screen readers use it to describe images to visually impaired users.

Best practices for images

  • Always include an alt attribute. Even if empty (alt="" for decorative images), the attribute should be present.
  • Make alt text descriptive. "Golden retriever puppy playing with a red ball" is helpful. "image1.jpg" is not.
  • Use descriptive file names. golden-retriever-puppy.jpg helps more than IMG0042.jpg.
  • Compress images. Large images slow page load, which affects crawl budget and user experience.

Open Graph & Twitter Cards: Social Sharing

Open Graph and Twitter Card tags control how your page appears when shared on social platforms. While not a direct ranking factor for Google Search, they affect how your content looks when shared - which can drive traffic and engagement.

Best practices

  • Set og:title, og:description, and og:image on every page.
  • Use high-quality images at 1200x630 pixels. This is the standard Open Graph image size.
  • Set twitter:card to summary_large_image for content pages.

The Big Picture: Content Comes First

Google's Creating Helpful Content guidance is the north star for all on-page work. Their self-assessment questions include:

  • Does the content provide original information, reporting, research, or analysis?
  • Does it provide a substantial, complete, or comprehensive description of the topic?
  • Is it the sort of page you'd want to bookmark, share, or recommend?
  • Would you expect to see this content in a printed magazine, encyclopedia, or book?

No amount of title tag optimization can compensate for content that doesn't answer the user's question. On-page SEO creates the foundation. Content quality builds on it.

Common on-page SEO myths

Want to check your own on-page SEO?

SEO by Daniel checks every on-page factor covered in this guide, plus domain infrastructure, SSL, and crawl budget.

Run a free audit → See a real sample report →