Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

With regard to microdata I was wondering if the elements must be exactly like the examples (http://support.google.com/webmasters/bin/answer.py?hl=en&answer=176035) or that Google/Bing look if the itemprop attributes occur on certain elements.

e.g. could I replace this:

<div itemprop="name">some text</div>

with this:

<span itemprop="name">some text</span>

Without affecting its functionality?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The type of tag can be either div or span without changing how micro-data is extracted. Here is a site giving examples with itemprop on a span tag: http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html

The best way to know for sure that Google will accept your markup, is to test it with the Google Structured Data Tool.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.