Codes / pt

hreflang="pt"

pt is a valid hreflang value for Portuguese.

Example

<link rel="alternate" hreflang="pt" href="https://example.com/pt/" />

The code is case-insensitive for Google. The conventional spelling is a lowercase language, a title-case script and an uppercase region: pt.

Without a region, the annotation targets every Portuguese speaker regardless of country. Regional versions sit next to the language-only version in one cluster.

Related codes

pt-PT pt-BR pt-AO pt-MZ