Skip to content
Glossary

What Is a Hreflang Tag?

A Hreflang tag is an HTML attribute or HTTP header that tells search engines which language and regional version of a webpage is intended for a particular audience. The tag connects equivalent pages across language or country variations. It helps search engines present the suitable version to searchers without treating translated pages as duplicate content.

Local relevance: Melbourne's multilingual population can lead law firms to publish English and translated pages, which makes accurate language-region targeting relevant to local legal searches.

Quick Facts About Hreflang tag

Category

Technical SEO element.

Used for

Language and regional page targeting.

Common confusion

It does not translate a webpage.

Also called

Hreflang attribute, rel="alternate" hreflang

Often discussed with

Technical SEO For Law Firms, Law Firm SEO Audits

Key Takeaways About Hreflang tag

  • Hreflang identifies language and regional page audiences.
  • Every language version needs matching, accurate references.
  • Hreflang does not translate page content or redirect visitors.

How Hreflang tag Works

A person writes on a paper labeled “Hreflang tag” at a desk with a keyboard, phone, and monitor nearby

A Hreflang tag links a webpage to an equivalent version written for a different language or region. Each related page references the other versions, and each reference identifies a language code or a language-region combination. Search engines can then compare the declared audience with the page content and search context.

Related glossary terms: Canonical tag, Noindex tag, Sitemap.

For example, an English page for Australia may point to an English page for the United Kingdom and a translated Spanish page. The canonical tag still identifies the preferred version of each page, while hreflang describes audience targeting. A sitemap can also carry hreflang references when the site uses that implementation method. Hreflang does not change URLs, translate text, or redirect visitors.

A person points at code on a laptop screen beside a notebook by a window

Expert Note

When we audit hreflang, we check that equivalent pages refer to one another and that language-region codes match the intended audience. We also compare the tags with canonical tags, page content, and sitemap entries. Our Technical SEO For Law Firms work treats these signals as one connected set.

Hreflang tag in Practice: A Real-World Example

A Melbourne immigration law firm may publish an English page for Australian searchers and a Spanish version for Spanish-speaking visitors. Hreflang references connect the two pages and identify the audience for each version.

Related Terms

Canonical tag

A canonical tag is an HTML instruction that identifies the preferred version of a webpage when…

Noindex tag

A Noindex tag is an instruction in a webpage’s HTML or HTTP response that asks search…

Sitemap

A Sitemap is a structured file or page that lists URLs a website wants search engines…

SEO-for-Lawyers.com.au

Have Questions About Hreflang tag?

Contact SEO-for-Lawyers.com.au for practical guidance on Hreflang tag and related seo for lawyers work in Melbourne.

The information on this website is for general informational purposes only and is not legal advice, does not create an attorney-client relationship, and may not reflect current law in Melbourne, Victoria. Every situation is different; consult a licensed attorney about your specific matter. Prior results do not guarantee a similar outcome.

+61 493 869 010