# Hreflang

> HTML attribute that specifies language and regional targeting for international pages.

Source: https://anotherseoguru.com/en/glossary/hreflang

Hreflang is an HTML attribute that tells search engines which language and regional version of a page to show users based on their location and language preferences. Essential for international and multilingual websites.

## Example

<link rel="alternate" hreflang="en-us" href="https://example.com/en-us/page" />
<link rel="alternate" hreflang="es" href="https://example.com/es/page" />

## How to apply it

Include self-referencing hreflang, ensure bidirectional references, use correct language/region codes, implement via HTML head, HTTP headers, or sitemap.

> **Pro tip:** Always include an x-default hreflang for users who don't match any specified language/region combination.

## Related terms

- [Geo-Targeting](https://anotherseoguru.com/en/glossary/geo-targeting)