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
6
votes
2 answers

Google SDTT error: "The review has no reviewed item specified."

I checked my website's Rich Snippets in the Google Rich Snippets Tool, and it had an error: The review has no reviewed item specified. How do I fix it? The code is:
Daniel Joseph
  • 69
  • 1
  • 4
6
votes
3 answers

Mixing JSON-LD and Microdata Schema.org

If I have the following markup:

Lecture 12: Graphs, networks, incidence matrices

These video lectures of Professor Gilbert Strang…

Simon
  • 5,158
  • 8
  • 43
  • 65
6
votes
1 answer

Structured Data > Microdata & Json-LD > Entity IDs > Fragment Identifier

I was wondering if it is better/proper to reference the entities using a fragment identifier format - basically by inserting a hash before the name [url] + # + [name] => http://example.com/page/#webPage EDIT: Following a kind answer from the…
TBB
  • 1,207
  • 1
  • 14
  • 25
6
votes
1 answer

Right way to set microdata for Q&A HTML

Say one has a simple question and answer HTML and would like to add microdata, how should one proceed?

My Question

My Answer

I am aware of the schema.org example, but I don't find it very clear. It looks like overkill. I need a…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
6
votes
1 answer

Microdata for product with variations

I'm new to microdata and I have the following scenario for which I would like some help: I wish to put microdata on product pages where, on the page, there can be multiple variations of the same product. Each variation has the same name, description…
6
votes
2 answers

Best way to markup "mainContentOfPage"?

for other areas of a web page it is simple to mark up; i.e. navigation element, header, footer, sidebar Not so with mainContentOfPage; I've seen a number of different ways to implement this, most recently (and I found this one to be the most…
Drewdavid
  • 3,071
  • 7
  • 29
  • 53
6
votes
2 answers

Itemscope and itemprop at same level

I have a link that looks like this: I'd like to put itemprop="url" in the tag, but it contains the itemscope for that product. Can I put…
YPCrumble
  • 26,610
  • 23
  • 107
  • 172
6
votes
2 answers

How is Value determined for an Anchor Tag with Microdata?

How do Google and others determine the value of an itemprop on an Anchor tag? Name Of Link In the example above, is the itemprop's value the href attribute, much like how the link tag is parsed? Or is the…
Swivel
  • 3,020
  • 26
  • 36
6
votes
4 answers

Categories for Product in schema.org?

Using as a reference: https://support.google.com/webmasters/answer/146750?hl=en You will notice under 'Product' that there is a category Property, and furthermore there's an example on down the page:
Zork
  • 149
  • 1
  • 1
  • 11
6
votes
1 answer

Is the schema.org documentation partly invalid?

I'm writing HTML/CSS/JS for about two years now and just decided to take more focus on to enhance my markup by using microdata/RDF. Through further investigations and by looking up how this thing is already handled in the wild I came across YouTube…
6
votes
1 answer

Which Microdata parser should I use in Python

I'm looking for a good quality HTML Microdata parser in Python. It doesn't have to be blazing fast but I'd like it to support as much of the spec as possible including itemref. Here's what I've found so…
Shawn Simister
  • 4,613
  • 1
  • 26
  • 31
6
votes
4 answers

schema.org: Multiple opening hours on same day

I'm building a website for a small store and want to implement schema.org-microdata-markup. The "problem": The store is opened from Tuesday till Friday – from 10:00 till 14:00 AND from 16:30 till 23:00 on these days. So I implemented the opening…
Max Malberg
  • 197
  • 1
  • 8
6
votes
2 answers

Can Schema.org VideoObject tags be applied to iframes?

Can VideoObject tags (Schema.org) be applied to iframes? Their own example and this one on googlewebmastercentral mentions nothing on videos embedded with iframes. Should it be added to the iframe itself with meta inside the iframe, or a wrapping…
TheTallOne
  • 143
  • 1
  • 9
6
votes
1 answer

Using Microdata with schema.org/OpeningHoursSpecification

I'm looking at http://schema.org/OpeningHoursSpecification Microdata schema for places (and more). I'm a little bit confused on the value to be used for DayOfWeek. Both classes (OpeningHoursSpecification and DayOfWeek) are derived from the…
JeanValjean
  • 17,172
  • 23
  • 113
  • 157
5
votes
6 answers

Schema.org openingHours in

I'm trying to create a schema.org definition for openinghours, which validates in Google's rich snippets testing tool. With this markup I want to define that on mondays a shop is open from 11:00-22:00.