Glossary

hreflang

Definition

An HTML link annotation that tells search engines which language and region a given URL targets, and which sibling URLs are translations of it.

Why it matters

On a bilingual site like andreiursachi.eu, hreflang prevents Google from treating Romanian and English versions as duplicate content and lets it show the right language to the right user. x-default is the fallback for users whose locale doesn't match either explicit version.

Example

/book emits hreflang='en' to /book and hreflang='ro' to /carti/prizonierul-mintii so a Romanian user clicking the English Google snippet still lands on the Romanian sales page.