1

After a bit of research I found recommendations as in:

<div itemscope itemtype="http://schema.org/Product">
  <a itemprop="url" href="URLOFPRODUCT">Link</a>
</div>

But I am trying to avoid linking to the product, on the product page.

Another approach I've noticed is the use of meta tags but outside the head, which is a big 'no no'.

Any suggestions?

unor
  • 92,415
  • 26
  • 211
  • 360
Christopher
  • 592
  • 9
  • 31

1 Answers1

3

For providing a URL in Microdata, you must use "a URL property element". Currently these are:
a, area, audio, embed, iframe, img, link, object, source, track, and video.

a and link are the only "generic" elements from this set.

If you don’t want to provide a visual link (by using a), go with link (which is typically hidden in browser default stylesheets). This is not "a big 'no no'", as link elements are allowed in the body if used for Microdata.

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360
  • Can I just ask, for other elements I wouldn't like to show up on the page, like brand name.. is it safe to go for the same approach? – Christopher Jun 02 '14 at 13:07
  • 1
    @ChrisD: If it’s a URL, use `link`. If not (i.e., it is text), use `meta`. – unor Jun 02 '14 at 13:13