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
-
Non-standard HTML tags in content
I had coded my website's article content with a non-standard tag <cnt>that surrounded other standard tags that contained the article content, I.e.</cnt> , . The whole text was enclosed in a div that used Schema.org markup to identify the contents of the div as the articleBody. When looking at scraped data for stories in Webmaster Tools, the content of the story was there and identified as the articleBody correctly. It's recently been suggested by someone else that the presence of the non-standard <cnt>tags were actually making the content of the article uncrawlable by the Googlebot, this effectively rendering the content invisible. I did not believe this to be true, since the content appeared to be correctly indexed in Webmaster Tools, but for the sake of a test I agreed to removing them. In the last 6 weeks since they were removed, there have been no changes in impressions or traffic from organic search, which leads me to believe that the removal of the <cnt>tags actually had no effect, since the content was already being indexed successfully and nothing else has changed.</cnt></cnt> My question is whether or not an encapsulating non-standard tag as I've described would actually make the content invisible to Googlebot, or if it should not have made any difference so long as the correct Schema.org markup was in place? Thank you.
Technical SEO | | dlindsey0 -
Adding Reviews to JSON Product Schema Markup
Hi everyone, Below is an example of some JSON product schema markup I'd like to integrate into my site. My question is, what do I need to do to incorporate the individual reviews on a product page as well? I've tried a few different things but I can't get it to validate.
Technical SEO | | VDigitalServices0 -
HREFLANG No Return Tag Error
Keep getting WMT no return tag error. Also got an email today on this issue. Here are a couple pages showing up in the error report: Originating URL: /hawaii/kauai-real-estate/ Alternate URL: /jp/hawaii/kauai-real-estate/ Here are the hreflang tags for each page: /hawaii/kauai-real-estate/ /jp/hawaii/kauai-real-estate/ The only thing I can see is the hreflang= is at the end of the snippet but doesn't seem like that would matter. Any thoughts would be greatly appreciated. Thank you.
Technical SEO | | SoulSurfer80 -
Schema showing up in product listing?
I have added schema to my product page as follows: Example product description ..... and so forth. However, the schema is showing up on the product page itself. How do I keep the schema on the SERP page, but not on the product page? My client doesn't want it to affect the site design. Thanks!
Technical SEO | | DWallace0 -
Are similar title tags frowned upon by search engines?
We are a B2B company that is looking to convert to one global portal very soon. It is only then that we will be able to address a lot of the IA SEO issues we are currently facing. However, we are looking to make some quick fixes, namely adding a proper title to the different country homepages. Will having the same title, with only the country modifier swapped out be a good tactic? Since we want a unified title across all country sites, it just makes sense that we don't change it for every single country. For example: Small Business Solutions for B2B Marketers | Company USA Small Business Solutions for B2B Marketers | Company Italy Small Business Solutions for B2B Marketers | France
Technical SEO | | marshseo0 -
Special Characters in Title Tags & Meta Descriptions
Do special characters, such as the "&" symbol or a "," in title tags and meta descriptions negatively affect your ranking in search engines? Any feedback is much appreciated. Thank you!
Technical SEO | | ZAG1 -
Testing for duplicate content and title tags
Hi there, I have been getting both Duplicate Page content and Duplicate Title content warnings on my crawl diagnostics report for one of my campaigns. I did my research, and implemented the preferred domain setting in Webmaster Tools. This did not resolve the crawl diagnostics warnings, and upon further research I discovered the preferred domain would only be noted by Google and not other bots like Roger. My only issue was that when I ran an SEOmoz crawl test on the same domain, I saw none of the duplicate content or title warnings yet they still appear on my crawl diagnostics report. I have now implemented a fix in my .htaccess file to 301 redirect to the www. domain. I want to check if it's worked, but since the crawl test did not show the issue last time I don't think I can rely on that. Can you help please? Thanks, Claire
Technical SEO | | SEOvet0 -
Semantic Web and Schema
Is anyone from SEOmoz planning on writing anything about the Semantic Web and Schema and how they see it impacting SEO?
Technical SEO | | EricVallee340