Questions tagged [microdata]

Microdata is a syntax for expressing structured data in (X)HTML5 documents. (If the question is about the vocabulary Schema.org, use the [schema.org] tag.)

Microdata is a syntax for expressing structured data in HTML documents. It’s designed to annotate content with machine-readable labels, to allow scripts to act on the type of content in the document.

Microdata support can be found in technologies such as search engines and web crawlers to better understand what information is contained in a web page, providing better search results.

From the Wikipedia article:

Microdata is an attempt to provide a simpler way of annotating HTML elements with machine-readable tags than the similar approaches of using RDFa and microformats.

Related tags

  • and
  • , the most popular vocabulary that can be used in Microdata
  • , an alternative syntax that can also be used with (X)HTML5
  • , a different approach to express structured data in (X)HTML documents
  • , an alternative syntax using JSON format

References

873 questions
21
votes
3 answers

How to hide microdata schema?

I have the following problem. I have add the microdata schema to my page but I want hidden. Anyone have an idea? The code that I've use is the following:
Overnet
  • 965
  • 3
  • 12
  • 20
19
votes
1 answer

How to implement "mainEntityOfPage" to this specific site?

Please take a look here: https://developers.google.com/structured-data/testing-tool?url=https%253A%252F%252Fglamourina.net%252Fen%252F How can I correctly add mainEntityOfPage to this site? In Google documentation example I see something like…
Pikk
  • 2,343
  • 6
  • 25
  • 41
18
votes
7 answers

Correct microdata markup for breadcrumbs

On researching how to do microdata for webpage breadcrumbs, I've found a couple of methods and I'm not sure which is correct. Firstly, my basic breadcrumbs in the HTML look like this:
CaribouCode
  • 13,998
  • 28
  • 102
  • 174
18
votes
1 answer

RDFa Vs. Microdata

RDFa in XHTML is a w3c standard. Microdata is mentioned as a HTML 5 API. My questions are: Is microdata also a w3c standard? If yes, why we need 2 similar standards? People say using microdata is simpler than RDFa. Except for this, what are the…
Manoj S.
  • 203
  • 2
  • 5
17
votes
2 answers

AggregateRating and ratingValue when not rated yet

How do I set up AggregateRating when the object is not rated yet (ratingValue = 0)? My current setup is:
devOp
  • 3,150
  • 1
  • 18
  • 32
16
votes
4 answers

How to add 'name' and 'url' properties to the same tag?

I'm adding the schema.org Microdata to my website. My HTML code is like this:
Name of the organization ABC…
LazNiko
  • 2,083
  • 3
  • 25
  • 39
16
votes
2 answers

Microdata: How to use with templates/partials?

TL;DR: Microdata forces you to use the itemprop on the same element as the itemtype that is this itemprops vaule. How do you deal with this, if you want to break up your template into partials? The element may only appear in one of the two places,…
Conkerchen
  • 720
  • 1
  • 4
  • 15
15
votes
5 answers

Schema.org in JSON LD format recognized by Google, but Facebook pixel helper does not detect it

I have added schema.org tags in JSON LD format using