republican-creole
site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Uniqs:
366
Share Topic
Posting?
Post a:
Post a:
Links: ·How To Get Noticed ·Web Monks FAQ ·Webhosting FAQ ·Posting Code ·How To Post ·Webhosting forum
AuthorAll Replies


tao
Frazzlebats
Premium
join:2000-12-03
Lansing, MI

Microdata question

<div itemscope itemtype="http://data-vocabulary.org/Person"> 
  My name is <span itemprop="name">Bob Smith</span> 
  but people call me <span itemprop="nickname">Smithy</span>. 
  Here is my home page:
  <a href="http://www.example.com" itemprop="url">www.example.com</a>
  I live in Albuquerque, NM and work as an <span itemprop="title">engineer</span>
  at <span itemprop="affiliation">ACME Corp</span>.
</div>
 
Since using this sort of code does not return immediate results, I have to ask someone who has used this if the "div itemscope itemtype=..." is required. The Google Webmaster pages show this code in the above example but do not comment on it. At first I was thinking the itemscope declaration might be used in the head and you would span itemtypes. I could write the div for each product, but ultimately would like to declare as much as I can just once.


neko
All Hail Canada
Premium
join:2006-08-11
Canada
Reviews:
·TekSavvy DSL

Yes, as far as I know you do have to write out the itemscope declaration for each. At least that's what I did, & the Rich Snippet testing tool says it's fine.

»www.google.com/webmasters/tools/richsnippets

If you have this running in a 'for' loop within your code ('foreach'), then you only have to write it once. The items then get auto populated by the loop.

Hope this helps.
--
...virtue gives you heraldry.


Thursday, 23-May 12:47:56 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 13.5 years online © 1999-2013 dslreports.com.
Most commented news this week
Hot Topics