The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Are my language tags correct?

    Are my language tags correct?

    Intermediate & Advanced SEO
    5 4 82
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • advertisingtech
      advertisingtech last edited by

      Hello,

      I have a Spanish website for Spanish speaking people es.example.com. I also have example.com for all English speaking people across the world.

      I want that users who go to google.es and search in English get our example.com site and others who search in Spanish on google.es get the Spanish site.

      Should the tags be like this:

      Or should we also have this tag aswell to specify? Otherwise we might only show the es.domain even for english queris? :

      1 Reply Last reply Reply Quote 0
      • GastonRiera
        GastonRiera last edited by

        Hello!

        yeap, those are correct. 
        And no, you should not create a hreflang tag with es-en. Remember that those tags must be in all pages, and have the self referential tag.

        Here a few resources to help you more:
        Hreflang generator - Aleyda Solis International SEO - Moz Learning Center The Guide to International Website Expansion: Hreflang, ccTLDs, & More! - Moz Blog The International SEO Checklist - Moz Blog

        Best Luck!
        GR.

        gfiorelli1 1 Reply Last reply Reply Quote 0
        • Joe_Stoffel
          Joe_Stoffel last edited by

          Hi there!

          Just to confirm (it was implied by the Google.es comment but international targeting was never specified) - are you looking to target Spanish speakers in Spain only? Or are you attempting to target Spanish speakers worldwide?

          If you are looking to target Spanish speaks in Spain only, then yes, this would be correct.

          If you are looking to target Spanish speakers globally, you would want the tag to be:

          1 Reply Last reply Reply Quote 0
          • gfiorelli1
            gfiorelli1 @GastonRiera last edited by

            You can create an hreflang with codes "en-es", because "es" also is the iso code of Spain as country, so the hreflang "en-es" is English in Spain (albeit would be better writing en-ES, but Google is not caps sensitive from what I know).

            Second... you don't need to use the hreflang in every page, only in the ones that really need it.

            For instance, if a page is canonicalized to another, the best way to avoid potential hreflang implementation mistakes (for instance, for not using the canonical URLs in the hreflang annotations) is not implementing it at all... because for its same canonicalized nature.

            1 Reply Last reply Reply Quote 0
            • gfiorelli1
              gfiorelli1 last edited by

              Both the hreflang looks correct if your site is targeting only :

              1. Spanish speaking users in Spain (hreflang="es-ES")
              2. English speaking users in Spain (hreflang="en-ES"

              If you are targeting English speaking users no matter the country, then you should use the hreflang="en" and not "en-ES".

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Hreflag Tags - English language & multiple regions
                gfiorelli1
                gfiorelli1
                0
                4
                104

              • Do I need to add the actual language for meta tags and description for different languages? cited for duplicate content for different language
                Matthew_Edgar
                Matthew_Edgar
                0
                2
                785

              • In our reports we get alt tag errors for our banner images. We are unable to add alt tags to the banner images as they live inside CSS. We can add a title tag on the div title for the banner. Does that help with SEO and accessibility?
                Shirley.Fenlason
                Shirley.Fenlason
                0
                3
                37

              • Canonical Tags increased after putting the appropriate tag?
                MattRoney
                MattRoney
                0
                4
                50

              • Is a 301 Redirect and a Canonical Tag on Uppercase to Lowercase Pages Correct?
                BlueprintMarketing
                BlueprintMarketing
                0
                7
                3.6k

              • Should the Title Tag and the H1 Tag not be the same or not anymore and can that be classed as over optimization?
                PeteC12
                PeteC12
                0
                5
                5.6k

              • Rel Alternate tag and canonical tag implementation question
                Amiee
                Amiee
                0
                4
                7.5k

              • For multi language sites, what is best - two domains or one with both languages?
                RobertFisher
                RobertFisher
                0
                7
                2.4k

              Get started with Moz Pro!

              Unlock the power of advanced SEO tools and data-driven insights.

              Start my free trial
              Products
              • Moz Pro
              • Moz Local
              • Moz API
              • Moz Data
              • STAT
              • Product Updates
              Moz Solutions
              • SMB Solutions
              • Agency Solutions
              • Enterprise Solutions
              • Digital Marketers
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority Checker
              • Local Citation Checker
              • MozBar Extension
              • MozCast
              Resources
              • Blog
              • SEO Learning Center
              • Help Hub
              • Beginner's Guide to SEO
              • How-to Guides
              • Moz Academy
              • API Docs
              About Moz
              • About
              • Team
              • Careers
              • Contact
              Why Moz
              • Case Studies
              • Testimonials
              Get Involved
              • Become an Affiliate
              • MozCon
              • Webinars
              • Practical Marketer Series
              • MozPod
              Connect with us

              Contact the Help team

              Join our newsletter
              Moz logo
              © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy