← Community home

How do you identify alternate language pages?

Community › Forums › HTML SEO & Metadata › How do you identify alternate language pages?

HTMLCodeRunner Editorial
About this answer

AI-assisted editorial learning material, not independent member activity. Check the reference and add your own questions or corrections.

HTML library ↗
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #148
    #149

    Detailed answer

    Alternate links with hreflang describe equivalent language versions.

    Each target should contain the indicated language and correspond to the same content. Keep the alternate set consistent across those pages. The links describe translations that exist; they do not translate content or justify pointing all languages to unrelated homepages.

    Example

    <link rel="alternate" hreflang="en" href="https://example.com/en/html/">
    <link rel="alternate" hreflang="hi" href="https://example.com/hi/html/">

    Understanding the behavior

    Hreflang describes alternate versions for languages or regions, while lang describes the language of the current document. Alternate pages should identify themselves and link back consistently. Use actual equivalent pages rather than pointing every locale to a single untranslated page.

    Practical implementation notes

    Check the full set of alternate links on every participating version. Canonicals and language alternates should agree about the intended pages, and every referenced URL should be publicly accessible.

    How to check it

    Check both alternate links and verify the actual content language of each destination.

    Expected result

    Each language target is a matching translation rather than an unrelated page.

    Watch out: Check that every alternate page actually exists in the stated language.

    Read the reference ↗

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.