The usual HTML way would be to use one attribute and separate several values with space characters.
Looking into the Microdata specification, you’ll notice that this is the case for the itemprop
attribute, too:
The
itemprop
attribute, if specified, must have a value that is an unordered set of unique space-separated tokens […]
So this should be correct:
<div itemscope itemtype="http://schema.org/Person">
I live and work in <span itemprop="homeLocation workLocation">New York</span>
</div>
(Note: If using itemprop
values as CSS selector, use [att~=val]
instead of [att=val]
.)