You can build backlinks, run ads, and post on social media every day. But if your website pages are not optimized properly, you are building on a cracked foundation.

On-page SEO covers everything within your own website that signals to Google what your pages are about, how trustworthy they are, and whether they deserve to rank for the queries you are targeting. Unlike backlinks or domain authority, on-page factors are 100% within your control.

We have optimized hundreds of pages for law firms and medical practices. Here are the on-page factors that actually move rankings, listed in order of impact.


1. Title Tag

The title tag is the most powerful single on-page SEO element you control. It is the clickable blue headline that appears in Google’s search results, and it tells Google (and searchers) exactly what your page is about.

Every page on your site needs a unique title tag that includes the primary keyword for that page.

Here is an example. If you are a family law attorney in Houston, your divorce services page should have a title tag like: “Divorce Attorney Houston | [Firm Name].” Not “Our Services” or “Family Law” or “Welcome to Our Firm.”

Title tag best practices:

  • Keep it between 50 and 60 characters. Google truncates anything longer.
  • Put the primary keyword at the beginning of the title. “Criminal Defense Attorney Phoenix” ranks better as a title than “Phoenix Law Firm for Criminal Defense.”
  • Make each title tag on your site unique. Duplicate titles confuse Google about which page to rank.
  • Include your firm name at the end, separated by a pipe (|) or dash.

A well-written title tag does double duty. It tells Google what the page is about AND it convinces the searcher to click. Think of it as a six-to-eight-word ad for your page.


2. Content Quality and Depth

Google’s algorithm has gotten remarkably good at evaluating whether a page genuinely answers the searcher’s question. Thin pages with 200 to 300 words of generic text do not rank for competitive queries. They just do not.

For law firms, the pages that rank on page one for terms like “personal injury attorney [city]” typically have 1,500 to 3,000 words of useful, well-organized content. That does not mean padding your page with fluff. It means covering the topic thoroughly.

A strong practice area page for a DUI defense attorney should include:

  • What a DUI charge involves in your state
  • The legal process from arrest through resolution
  • Potential penalties and consequences
  • Common defense strategies
  • What makes your firm qualified to handle these cases
  • Answers to frequently asked questions
  • A clear call to action

Each of these sections adds depth, relevance signals, and reasons for the visitor to stay on the page. Google notices when visitors spend time on a page versus bouncing back to search results immediately. Depth keeps people on the page, and that engagement signal feeds back into rankings.

The E-E-A-T factor. Google evaluates content based on Experience, Expertise, Authoritativeness, and Trustworthiness. For law firm websites (which Google classifies as “Your Money or Your Life” content), E-E-A-T matters more than in most industries. Content that demonstrates real legal knowledge and practical guidance outranks generic pages written by someone with no legal background.


3. H1 Tag (Page Headline)

The H1 is the main visible headline on the page, the big text at the top that tells visitors what they are looking at. Every page should have exactly one H1, and it should include the primary keyword.

Google uses the H1 to confirm what the title tag already signaled. A page with a title tag about “DUI Attorney Phoenix” and an H1 that also references DUI defense in Phoenix sends a consistent, clear relevance signal. A page where the title tag says one thing and the H1 says something completely different creates confusion.

Keep your H1 clear and descriptive. It does not need to be identical to the title tag, but it should target the same primary keyword.


4. Heading Structure (H2s and H3s)

Below the H1, your page should use H2 and H3 headings to organize content into logical sections. This serves two purposes.

First, it makes the page easier for visitors to scan and read. People do not read web pages top to bottom. They scan headings, find the section relevant to them, and read that section. Good heading structure respects that behavior.

Second, each heading gives Google additional signals about the topics covered on the page. An H2 that says “Penalties for a First-Time DUI in Arizona” tells Google your page covers that specific subtopic. That helps you rank for long-tail queries related to first-time DUI penalties, even if your primary target keyword is broader.

Heading structure rules:

  • Use one H1 per page (the main headline)
  • Use H2s for major sections
  • Use H3s for subsections within an H2
  • Do not skip levels (do not jump from H1 to H3)
  • Include relevant keywords in headings naturally, but do not stuff them

5. Keyword Placement and Usage

Your primary keyword should appear in these locations on every page:

  1. Title tag
  2. H1 heading
  3. First 100 words of the body content
  4. At least one H2 heading
  5. Image alt text (for at least one image)
  6. Meta description
  7. URL

Beyond placement, your content should naturally include related terms and synonyms. Google understands semantic relationships between words. A DUI defense page that never mentions “blood alcohol content,” “breathalyzer,” “field sobriety test,” or “license suspension” is missing content signals that tell Google the page is comprehensive.

This is not about keyword density percentages. It is about writing content that thoroughly covers the topic. If you do that, the right keywords appear naturally.


6. Meta Description

The meta description is the short text snippet below your title tag in search results. Google has confirmed it is not a direct ranking factor. But it absolutely affects your click-through rate, and click-through rate does influence rankings over time.

A strong meta description:

  • Summarizes what the page offers in 150 to 160 characters
  • Includes the primary keyword (Google bolds matching terms in the snippet)
  • Contains a subtle call to action (“Learn about your options” or “Free consultation available”)
  • Reads like a compelling two-sentence pitch for why someone should click your result instead of a competitor’s

Do not leave meta descriptions blank. Google will auto-generate one by pulling random text from your page, and the result is almost always worse than what you would write.


7. URL Structure

Clean, descriptive URLs help both users and search engines understand your page content at a glance.

Good URL: /criminal-defense-attorney-phoenix/ Bad URL: /page?id=3847&category=services

URL best practices:

  • Include the primary keyword
  • Keep it short (three to five words is ideal)
  • Use hyphens to separate words
  • Avoid special characters, numbers, and unnecessary parameters
  • Use lowercase only

Once a URL is published and indexed, avoid changing it unless absolutely necessary. Changing URLs requires proper 301 redirects, and even with redirects, you can lose some ranking momentum temporarily.


8. Internal Linking

Internal links (links from one page on your site to another) serve two critical functions.

They pass authority. When your homepage links to your DUI defense page, some of the homepage’s authority flows to the DUI page. Strategic internal linking distributes ranking power throughout your site.

They help Google crawl and understand your site. Google discovers pages by following links. A page with no internal links pointing to it (called an “orphan page”) may not get crawled or indexed at all.

For law firm websites, build an internal linking structure that connects:

  • Practice area pages to related sub-pages
  • Blog posts to relevant practice area pages
  • Location pages to main service pages
  • Every important page to the homepage (and vice versa)

Use descriptive anchor text. Instead of “click here,” use “learn more about our DUI defense services.” The anchor text tells Google what the linked page is about.

Aim for three to five internal links per page, minimum. High-priority pages (your main practice area pages) should have even more internal links pointing to them.


9. Image Optimization

Images affect page speed, user experience, and SEO. Here is how to optimize them.

File size. Compress images before uploading. A single uncompressed image can add seconds to your page load time. Tools like TinyPNG or ShortPixel reduce file size by 50% to 80% without visible quality loss.

Alt text. Every image should have descriptive alt text that includes relevant keywords where appropriate. Alt text serves accessibility purposes (screen readers read it aloud for visually impaired users) and gives Google additional context about your page content.

File names. Name your image files descriptively. “phoenix-criminal-defense-attorney.jpg” is better than “IMG_4582.jpg.”

Format. Use WebP format where possible. It produces smaller file sizes than JPEG or PNG with equivalent quality. Most modern browsers support it.


10. Page Speed and Core Web Vitals

Google has made page speed a direct ranking factor. Their Core Web Vitals program measures three specific aspects of page performance:

Largest Contentful Paint (LCP): How fast the main content loads. Target: under 2.5 seconds.

First Input Delay (FID) / Interaction to Next Paint (INP): How quickly the page responds when a user clicks something. Target: under 200 milliseconds.

Cumulative Layout Shift (CLS): How much the page layout jumps around while loading. Target: under 0.1.

Pages that fail Core Web Vitals get a ranking penalty, particularly on mobile. And since over 60% of legal searches happen on mobile devices, this matters.

Common page speed issues on law firm websites:

  • Oversized hero images (often 3 to 5 MB when they should be 200 to 400 KB)
  • Too many third-party scripts (chat widgets, tracking pixels, analytics tools)
  • Unminified CSS and JavaScript files
  • Slow hosting servers

Run your pages through Google PageSpeed Insights (free) and address any issues flagged in red. Even moving from a 40 score to a 70 score can produce a noticeable ranking improvement.


11. Mobile Optimization

Google uses mobile-first indexing, which means it primarily evaluates the mobile version of your page when determining rankings. If your site looks great on desktop but breaks on mobile, Google sees the broken version.

Check every page on your site from a mobile device. Look for:

  • Text that is too small to read without zooming
  • Buttons that are too close together to tap accurately
  • Content that extends beyond the screen width
  • Pop-ups that cover the entire mobile screen (Google actively penalizes these)

A mobile-friendly design is no longer a competitive advantage. It is a baseline requirement.


Putting It All Together: A Page Optimization Checklist

Before publishing or updating any page on your site, run through this checklist:

  • Unique, keyword-rich title tag (50 to 60 characters)
  • Compelling meta description (150 to 160 characters)
  • Single H1 with primary keyword
  • Logical H2/H3 heading structure
  • Primary keyword in first 100 words
  • 1,500+ words of useful, well-organized content
  • Clean, keyword-rich URL
  • 3 to 5 internal links to relevant pages
  • Optimized images (compressed, alt text, descriptive file names)
  • Page loads in under 2.5 seconds on mobile
  • Passes Core Web Vitals
  • Mobile-responsive layout

The Foundation Comes First

On-page SEO is not glamorous. It is not the exciting part of digital marketing. But it is the part that makes everything else work. The best backlink profile in the world will not save a page with a missing title tag, thin content, and a five-second load time.

Get your on-page fundamentals right on every page, and you build a foundation that compounds over time. Each new piece of content, each backlink earned, and each positive user interaction builds on that foundation.

We audit and optimize on-page SEO for law firms and medical practices as part of our SEO programs. If your site has pages that should be ranking but are not, the answer is often sitting in the on-page details. Book a strategy call and we will take a look.