Schema.org microformatting - itemprop within href tag?
-
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:
In Google's tool, that gave me this:
addresslocality
text = City Name
href = http://www.domain.com/webpageSo which is better?
-
You're welcome
-
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!
-
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.
-
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>
-
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
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.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Can I safely delete unused tags??
Can I safely delete unused tags, ones with 0 posts connected to them? Thanks, Mike
Technical SEO | | naturalsociety0 -
Does Google read dynamic canonical tags?
Does Google recognize rel=canonical tag if loaded dynamically via javascript? Here's what we're using to load: <script> //Inject canonical link into page head if (window.location.href.indexOf("/subdirname1") != -1) { canonicalLink = window.location.href.replace("/kapiolani", ""); } if (window.location.href.indexOf("/subdirname2") != -1) { canonicalLink = window.location.href.replace("/straub", ""); } if (window.location.href.indexOf("/subdirname3") != -1) { canonicalLink = window.location.href.replace("/pali-momi", ""); } if (window.location.href.indexOf("/subdirname4") != -1) { canonicalLink = window.location.href.replace("/wilcox", ""); } if (canonicalLink != window.location.href) { var link = document.createElement('link'); link.rel = 'canonical'; link.href = canonicalLink; document.head.appendChild(link); } script>
Technical SEO | | SoulSurfer80 -
Micro Data Schema Error - How to solve?
For my Ecommerce site suddenly following errors occurred while I test my homepage in structured data testing tools - Error - image- A value for the image field is required. Name - A value for the image field is required. On right side of tool it's show me - Warning - address - The address field is recommended. Please provide a value if available. pricerange - The priceRange field is recommended. Please provide a value if available. telephone - The telephone field is recommended. Please provide a value if available. On right side of tool it's show me - Please let me know how to solve this errors and warnings? I have implemented schema via micro data. Thanks!
Technical SEO | | adamjack0 -
Meta Title Tags - Quick question!
Hi all, Our category Meta Title Tags are a little woeful and so I'm in the process of rewriting them. Let's say you have a product for sale.... some inkjet cartridges for a Canon BJ10V printer for example. In an effort to keep things concise I was thinking that for this category I should have the meta title set simply as: 'Canon BJ10V Inkjet Cartridges' and perhaps our company name after this text (and a pipe delimiter) This takes us just under 50 characters which is ideal but doesn't include any real keyword variation and will result in the company name being duplicated at the tail of the title tag on 6,000 odd pages. A large number of my competitors have title tags along the lines of: 'Canon BJ10V Cheap Inkjet Cartridges for Canon BJ-10V Ink Printers' I understand the reasoning behind this but does the variation of keywords compensate for the fact that the title looks spammy (to both humans and Search Engines). What would you do? Keep it clean and concise or stuff the title full of keywords. In the event of the former would you include the company name in each title in the knowledge they would be well under 50 characters without? Thanks for your help.
Technical SEO | | ChrisHolgate1 -
Mobile header and Schema Tags
We have recently made a website I work on responsive. This involved taking their original desktop site and then making it work on mobiles/tablets. Due to the nature of their existing header we are serving a different version to mobiles/tablets. Do the schema tags which are on the desktop header need to be added to the mobile version or are they just needed on the desktop code?
Technical SEO | | edwardlewis0 -
Which one should I use Schema.org or Microformats.org
Hi, I would like to know which one is better to use Schema.org or Microformats.org My CMS doesn't support Schema.org attributes, I can only use Microformats.org documentation, but I wanted to knwo if Schema.org is better one, so I will change my CMS and use another one.
Technical SEO | | FisnikSylka0 -
Duplicate Title Tag issue due to Shopify CMS
Hi guys, I'm a novice really when it comes to SEO, yet have taken it in house for the next year or so, firstly because I have had my fingers burnt twice...and secondly, to allow me to recoup some of the loss from my prior campaigns. One thing I have noticed on my site (which uses a Shopify E-commerce CMS), is that Shopify duplicates a url for each my products. An example of this is http://www.vidahomes.co.uk/collections/designer-radiators-heating/products/reina-aliano
Technical SEO | | philscott2006
http://www.vidahomes.co.uk/products/reina-aliano Both products provide exactly the same information, yet appear in different ways subject to how the customer finds them. I contacted Shopify to find a fix to this issue when I noticed a high amount of Duplicate Title Tags in my SEO crawl. Their response was as follows. Using a rel canonical link will help prevent duplicate content issues with search engines. All you need to do is add this line of code: **<link rel="canonical" href="{{ canonical_url }}" />** ** before the tag in the theme.liquid file. It’s that simple :)** The theme liquid file basically generates the outer template for the whole site, and is only compromised when over-ruled. This all seems a little too easy for me, so I am hoping whether someone can elaborate as to whether this will work or not, as I'm not entirely sold on their response. I was always under the impression with canonical tags, that they should be added to the header section of the duplicate page in question, which refers back to the original page. The code I have been told to add above implies that the canonical tag would be added to every page in my site so the Google robot would have a hard time in finding anything at all of relevance Thanks in advance for any assistance with this. Kind Regards Phil Scott Vida Homes0 -
Canonical tags
Hi there, I have just noticed that SEOmoz picked up some duplicates links that I would like to resolve but not sure how. For example, the "Finding work in the arts" article has two links: http://www.creative-choices.co.uk/develop-your-career/article/finding-work-in-the-arts http://www.creative-choices.co.uk/develop-your-career/article/finding-work-in-the-arts?utm_source=Website&utm_medium=Website&utm_content=Finding+work+in+the+arts&utm_campaign=Footer+Links Both links can be found on this page http://www.creative-choices.co.uk/industry-news-views/article/what-employers-are-looking-for (see attachment). Would automatically generated canonical tags by the CMS solve this issue? rmxiP
Technical SEO | | CreativeChoices0