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. Technical SEO Issues
    4. Schema.org microformatting - itemprop within href tag?

    Schema.org microformatting - itemprop within href tag?

    Technical SEO Issues
    6 2 3.3k
    • 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.
    • ufmedia
      ufmedia last edited by

      I'm trying to implement microformatting on the site, specifically for the cities where we are active.  I'm hoping this will help us rank in local search.  This is what I have been doing:

      op="addressLocality">City Name

      In Google's Rich Snippets Testing Tool, that yields this:

      addresslocality = City Name

      However, I've also done this:

      • City Name

      In Google's tool, that gave me this:

      addresslocality

      text = City Name
      href = http://www.domain.com/webpage

      So which is better?

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

        What are you trying to achieve? Do you have a page per location on your webstite and on each, this is where you're implementing geo/location based schema?

        Which is better depends on its purpose, schema markup is intended to provide as much information to search engines as possible, anything of relevance to a website's products or services.

        It is likely what you're after is the organisation markup, this can also appear in Google Places listings too. Look at the Microdata link at the bottom of that page and implement what is relevant to your website from there.

        Currently rich snippet markup won't have a direct influence on rankings, however the correct implementation will make results from your website appear more prominent in search results.

        It would be worth looking over the specification for Schema's organisation / local business markup too so you can see what is available to you.

        Something such as the following should be relevant to what you are trying to achieve...

        Business Name

        Address Line 1

        Address Line 2

        City / Town

        County / State

        Post / Zip Code

        777 888 999

        me@mywebsite.com

        http://www.mywebsite.com

        Anything that you require testing to see if it is implemented correctly and will appear in the search results as you intend can be done with Google's Rich Snippet Testing Tool or this Microdata Tool.

        Hope that points you in the right direction for now.

        ufmedia 1 Reply Last reply Reply Quote 0
        • ufmedia
          ufmedia @zigojacko last edited by

          Yes, we have individual pages based on location.  I want internal links to those pages to carry microformatting.  I put the itemprop attribute within a tag, which seems to work fine, but putting the itemprop within an <a>tag seems to apply to both the text (i.e. the city name) and the URL of the page.  I'm wondering if the second approach is better.  </a>

          zigojacko ufmedia 3 Replies Last reply Reply Quote 0
          • zigojacko
            zigojacko @ufmedia last edited by

            Rich Snippet Markup should be implemented on the page containing the information not on links pointing to the pages.

            Difficult to really advise on which approach would be best because from what I can gather, it doesn't sound like you're implementing the markup correctly.

            Better to mark up the content on the location pages themselves with the address, locality, city/town etc as per my example above.

            Might be worth reading up on exactly how Schema data works.

            1 Reply Last reply Reply Quote 1
            • ufmedia
              ufmedia @ufmedia last edited by

              I've read schema.org quite a bit, and I know that microformats are really meant to be used on individual pages, but I didn't know it was considered inappropriate to use them on internal links.  I'll rethink this.  Thanks!

              1 Reply Last reply Reply Quote 0
              • zigojacko
                zigojacko @ufmedia last edited by

                You're welcome 🙂

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Can Google Read schema.org markup within Ajax?
                  vmialik
                  vmialik
                  0
                  3
                  1.4k

                • Opengraph or Schema.org - What is your preference?
                  Nobody1560986989723
                  Nobody1560986989723
                  0
                  2
                  498

                • Schema.org for restaurant menus
                  Ontarioseo
                  Ontarioseo
                  0
                  4
                  3.6k

                • Schema.org for category pages
                  CoreyEulas
                  CoreyEulas
                  0
                  2
                  3.6k

                • Hotels Schema.org
                  BenRush
                  BenRush
                  1
                  6
                  6.9k

                • Implementing Schema within Existing CSS tags
                  TechMama
                  TechMama
                  0
                  3
                  522

                • Schema.org support by google
                  StalkerB
                  StalkerB
                  0
                  2
                  665

                • Schema.org for ecommerce
                  RikkiD22
                  RikkiD22
                  0
                  3
                  673

                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