Skip to content Skip to sidebar Skip to footer

Using Microdata's 'itemprop' Attribute On Non-text Elements

I have a following piece of HTML with some Schema.org Microdata added:

Lorem i

Solution 1:

Microdata (W3C Note) defines that the property value is, in the general case (which applies in your example):

[…] the element's textContent.

So yes, your usage is fine.

(Of course this means that "Dry Aged Beef" will also be part of the description value.)

Post a Comment for "Using Microdata's 'itemprop' Attribute On Non-text Elements"