
Header Tags and URL Structure: On-Page SEO Best Practices
Two of the most fundamental on-page elements are also two of the most overlooked: your header tags and your URL structure. Together they give both readers and search engines a clear map of your content, what a page is about, how it is organized, and where it sits on your site. Getting header tags and URLs right is basic, but doing it well quietly strengthens every page you publish. This guide covers the on-page best practices for both.

What header tags do
Header tags are the HTML headings, H1 through H6, that structure your content into a clear hierarchy. They do two jobs at once: they help readers scan and understand your page, and they help search engines grasp its structure and topic. Well-organized header tags make content easier to read and more likely to be pulled into featured snippets and AI answers, which often extract individual headings. Because they carry more weight than ordinary body text, thoughtful headings are a simple, high-value part of on-page SEO.
Use one H1 per page
The H1 is your page’s main headline and one of its strongest on-page signals, so use exactly one per page. It should clearly describe what the page is about and ideally include your primary keyword near the front where it reads naturally. Multiple H1s or a missing H1 muddy the signal about your page’s main topic. Think of the H1 as the title of a chapter: there should be one, it should be descriptive, and it should set the reader’s and search engine’s expectation for everything that follows.
Structure H2s and H3s logically
Beneath the H1, use header tags to build a logical outline: H2s for your main sections and H3s for subsections within them, without skipping levels. This hierarchy helps search engines understand how your ideas relate and helps readers navigate. Write your headings as clear, self-contained phrases that make sense on their own, since featured snippets and AI engines often pull headings without their surrounding context. Working relevant terms into your headings naturally reinforces your topic, while a clean heading structure makes even long content easy to follow.
Write headings for humans first
It is tempting to stuff header tags with keywords, but that backfires. Headings should read naturally and genuinely describe the section they introduce, helping a real person decide whether that part answers their question. Search engines reward clarity and relevance, not repetition, so a heading that clearly communicates its section’s value outperforms one crammed with keywords. Write your headings as if there were no algorithm, then check that your topic comes through naturally, and you will satisfy both readers and search engines.
Keep URLs short and descriptive
Turning to URL structure, the guiding principle is short and descriptive. Analysis of search results consistently finds that shorter URLs tend to rank better, and a clean, readable URL builds trust with users who see it in results. Include your target keyword where it fits naturally, describe the page’s content, and avoid long strings of numbers, dates, or parameters. A URL like your-site.com/header-tags is clearer and stronger than one full of codes, both for search engines parsing it and for people deciding whether to click.
Use hyphens and lowercase
A few small URL conventions matter more than people expect. Separate words with hyphens rather than underscores or spaces, since Google treats hyphens as word separators, and keep your URLs lowercase to avoid duplicate-URL issues on case-sensitive servers. Keep them concise, a few descriptive words rather than the entire page title. These conventions make your URLs clean, consistent, and easy for both users and search engines to read, and applying them consistently across your site prevents a range of small, avoidable problems.
Build a logical URL hierarchy
Beyond individual URLs, your overall structure should reflect a logical hierarchy that mirrors how your content is organized. Grouping related pages under sensible paths, such as a services or blog directory, helps search engines understand the relationships between pages and helps users know where they are on your site. A coherent URL structure supports crawlability and internal linking, distributing authority sensibly through your site. It is worth planning this structure thoughtfully, because reorganizing URLs later requires careful redirects to avoid losing rankings.
Common header tag and URL mistakes
The most common header tag mistakes are using multiple H1s or none at all, skipping heading levels so the hierarchy is illogical, and stuffing headings with keywords instead of writing them for clarity. On the URL side, frequent errors include long, parameter-heavy URLs, underscores or capital letters, dates baked into permalinks that make content look stale, and disorganized structures with no clear hierarchy. Each of these is minor on its own, but together they add friction that holds pages back.
Avoiding them is straightforward once you know what to look for. Set your permalink structure sensibly before you publish, use one clear H1 and a logical heading outline on every page, and write both headings and URLs to be readable and descriptive. These are the kinds of fundamentals that are easy to get right from the start but tedious to fix in bulk later, so building good habits early pays off across everything you publish.
Neither header tags nor URL structure will single-handedly transform your rankings, but together they are part of the on-page foundation that lets your content perform. They make your pages clearer to search engines, more inviting to users, and better structured for the featured snippets and AI answers that increasingly shape visibility. My on-page optimization service handles these details as part of a complete setup, and our broader SEO service ties them into your strategy. Google’s SEO starter guide covers the fundamentals.
The reassuring thing about header tags and URL structure is that, unlike many SEO tasks, they are almost entirely within your control and easy to get right once you know the rules. There is no algorithm to chase or competitor to outspend; you simply set a sensible permalink structure, use one clear H1 and a logical heading outline on every page, and keep both readable and descriptive. Build these into your standard publishing routine and they stop being something you think about, quietly strengthening every page while you focus your energy on the content itself. Small, consistent habits like these are what separate a tidy, well-optimized site from a messy one that leaves easy gains on the table.
Frequently asked questions
How many H1 tags should a page have?
Exactly one. The H1 is your main headline and a strong ranking signal, so use a single descriptive H1 per page, with H2s for main sections and H3s for subsections beneath them.
Do header tags affect SEO?
Yes. Header tags structure your content for readers and search engines, carry more weight than body text, and are often pulled into featured snippets and AI answers, so a clear heading hierarchy helps rankings.
What makes a good URL for SEO?
Short, descriptive, and readable, including your keyword where it fits naturally, with hyphens between words, lowercase letters, and no unnecessary numbers or parameters. Shorter URLs tend to rank better.
Should I use hyphens or underscores in URLs?
Hyphens. Google treats hyphens as word separators but does not always interpret underscores the same way, so hyphens make your URLs clearer to search engines and users alike.
Can I change my URL structure later?
You can, but it requires careful redirects to avoid losing rankings, since changing URLs breaks existing links and indexing. It is far better to plan a sensible structure before you publish.
Free SEO audit · No signup
Reading about SEO is good. Knowing your score is better.
Run a free SEO + GEO + AEO audit of your website — results in about 15 seconds, downloadable as a PDF.