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
-
Homepage name in Breadcrumb for schema.org
Hi all, We have recently implemented the schema.org structure for our breadcrumbs. In our breadcrumb we include a link to the homepage. Since implementation I'm receiving the following error in Google Search Console: Either "name" or "item.name" should be specified The error is being triggered because we don't have itemprop="name" defined for the homepage on each page. Our breadcrumbs look good in search but I'm wondering if anybody else has experienced this error and what can we do to fix it. Should itemprop="name" be our Brand name? Or should we define this as our root domain? Thanks in advance
Technical SEO | | Brando160 -
Pages being flagged in Search Console as having a "no-index" tag, do not have a meta robots tag??
Hi, I am running a technical audit on a site which is causing me a few issues. The site is small and awkwardly built using lots of JS, animations and dynamic URL extensions (bit of a nightmare). I can see that it has only 5 pages being indexed in Google despite having over 25 pages submitted to Google via the sitemap in Search Console. The beta Search Console is telling me that there are 23 Urls marked with a 'noindex' tag, however when i go to view the page source and check the code of these pages, there are no meta robots tags at all - I have also checked the robots.txt file. Also, both Screaming Frog and Deep Crawl tools are failing to pick up these urls so i am a bit of a loss about how to find out whats going on. Inevitably i believe the creative agency who built the site had no idea about general website best practice, and that the dynamic url extensions may have something to do with the no-indexing. Any advice on this would be really appreciated. Are there any other ways of no-indexing pages which the dev / creative team might have implemented by accident? - What am i missing here? Thanks,
Technical SEO | | NickG-1230 -
Schema markup in tag manager for multiple locations not registering in tester tool or search console
Hi Moz community, I had implemented schema markup for companies with multiple branches. We setup an organization with multiple points of contact tag, a Local Business tag for each branch and tags for specific products/ services - all through Google tag manager. I managed to fix the product markup with a small update to the code I found in a Google forum but have been unable to revive our local business markup. The tags of the schema mark up are active but when I run the Google structured data testing tool it doesn't find any schema tags. We are seeing some of the tags show up in search console but not all of them. Has anyone else had this problem and found a solution? Or, do you have any recommendations on how to markup an organization with multiple branches? Should we have one overall organization tag and a separate one for each business or is there another way of presenting each branch? Appreciate any insight!
Technical SEO | | Alexanders0 -
Meta descriptions and h1 tags during a 301 redirect
My employer is shifting to a new domain and i am in the midst of doing URL mapping. I realize that many of the meta descriptions and H1 tags are different on the new pages - is this a problem ? Thank you.
Technical SEO | | ptapley0 -
Canonical tag for Home page: with or without / at the end???
Setting up canonical tags for an old site. I really need advice on that darn backslash / at the end of the homepage URL. We have incoming links to the homepage as http://www.mysite.com (without the backslash), and as http://www.mysite.com/ (with the backslash), and as http://www.mysite.com/index.html I know that there should be 301 redirects to just one version, but I need to know more about the canonical tags... Which should the canonical tag be??? (without the backslash) or (with the backslash) Thanks for your help! 🙂
Technical SEO | | GregB1230 -
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 -
Optimum title and description meta tag length
Hi all, I have read that a title tag and description tag length of 69 and 156 characters respectively, should be used as this is all that Google will show in the search results, but that search engine robots will read longer titles and descriptions and additional characters will have an effect on ranking algorithms. However, is there any SEO benefit in making title and description tags longer to include more keywords to aid ranking, even though the latter part won't be visible in the results. I have read elsewhere on this forum that there may be concerns with regards to keyword dilution, but what about keyword reinforcement, i.e. by a repetition of the main keyword at the end of the title/description (I mean in a readable manner here, not 'stuffed')? Thanks in advance, Gareth
Technical SEO | | gdavies090319770 -
Does Google follow links in "id" tag?
Hello, For functionality purposes, I need to wrap separate blocks of content with a tag. The main question is whether Google will follow this URL, even though it is not a hyperlink on the page, just a URL used for functionality purposes. We will have 10-20 of these types of span tags with a different URL for each one, and we just want to be sure that Google will not be following these URLs that are not links. Thanks!
Technical SEO | | Hakkasan0