Skip to content
Glossary

What Is a Hreflang Tag?

A hreflang tag is an HTML link attribute that tells search engines which language and regional version of a page is intended for a particular audience. The attribute connects equivalent pages, such as English pages for Australia and the United Kingdom, so search engines can select the most suitable version in search results.

Quick Facts About Hreflang tag

Category

Technical SEO signal

Used for

Language and regional page targeting

Common confusion

It is not a translation tool

Also called

Hreflang attribute, rel="alternate" hreflang

Often discussed with

Technical SEO, SEO Audits

Key Takeaways About Hreflang tag

  • Hreflang identifies language and regional audience targeting.
  • Each regional version should reference the relevant alternate pages.
  • Hreflang does not replace canonical tags or translations.

How Hreflang tag Works

Two people point at a notepad about hreflang tags beside a laptop, papers, and office tools on a wooden desk

A hreflang tag appears in a page's HTML head, HTTP headers, or XML sitemap. The tag names a language and, where needed, a regional code, then points search engines to the matching URL. A page can identify versions for Australian English, British English, or another intended market.

Related glossary terms: Canonical tag, Duplicate content.

Search engines compare these references with the pages that return them. Consistent reciprocal references help search engines understand which URLs serve the same content for different audiences. Canonical tags still indicate the preferred URL within a set of similar pages, while hreflang handles audience targeting. Hreflang does not translate content or guarantee a particular ranking.

A person points a stylus at code on a desktop monitor beside a keyboard on a wooden desk

Expert Note

When we review hreflang, we check that every regional URL is accessible, uses the intended language and region code, and references its matching alternatives. We also compare the HTML, sitemap, or HTTP implementation with canonical signals, because conflicting instructions can make the intended audience unclear.

Hreflang tag in Practice: A Real-World Example

A Sydney law firm may publish an English page for Australian readers and a separate page for readers in New Zealand. Hreflang references connect the equivalent pages and identify the intended regional audience for each URL.

Related Terms

Canonical tag

Canonical tag is an HTML link element that identifies the preferred version of a webpage when…

Duplicate content

Duplicate content is a search engine optimisation issue where substantially similar or identical text appears on…

LawyerSeoMarketing.com.au

Have Questions About Hreflang tag?

Contact LawyerSeoMarketing.com.au for practical guidance on Hreflang tag and related lawyer seo marketing work in Sydney.

0493869010