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
5
votes
7 answers

Html for Snail Mail Addresses

What do you think is the best way to markup a snail mail address? I found some different options such as:
Mr. Bob
45654 Bob Ln
JoshBerke
  • 66,142
  • 25
  • 126
  • 164
5
votes
6 answers

Using HTML5+Microdata's tag in the

I want to specify if the Product is "In Stock" using HTML5+Microdata's tag using Schema.org. I am unsure if this is the correct syntax:

Product Name

jacko333
  • 59
  • 1
  • 2
5
votes
2 answers

What's the best way to parse RDFa, Microdata, etc, store and display info back using a uniform schema/vocabulary (schema.org's for example)

I'm mainly using Ruby to do this but my plan of attack thus far is as follows: Use the gems rdf,rdf-rdfa, and either rdf-microdata or mida to parse data given any URI. I think it'd be best to map to a uniform schema like schema.org, for example take…
imorsi
  • 346
  • 1
  • 11
5
votes
1 answer

Using AggregateRating and ratingValue when the value is an image

I'm trying to add some rich snippets to my site and am struggling a little with the AggregateRating section as the value for my ratingValue is displayed only as an image. My markup looks like this:
Kevin Wilson
  • 7,753
  • 8
  • 35
  • 39
5
votes
2 answers

'aggregateRating' and 'review' for products that don't have any ratings or reviews

I am adding aggregateRating and review properties to my new product pages that don't have any ratings or reviews. How would I add them to my pages and have them be valid for Google Structured Data?
M. Foster
  • 51
  • 1
  • 3
5
votes
1 answer

Mixing JSON-LD CollectionPage and Microdata `hasPart` of Schema.org

The microdata markup below works perfectly, Google's structured data testing tool shows one CollectionPage and WebSite/WebPage as children.
ilyaigpetrov
  • 3,657
  • 3
  • 30
  • 46
5
votes
1 answer

Image social meta tags - property="og:image" name="twitter:image" itemprop="image"

Social networks do a pretty good job extracting title and description from websites when URL is shared, but for images it is still necessary to create custom meta tags: property="og:image" name="twitter:image" itemprop="image". My question is, will…
Dreadlord
  • 403
  • 1
  • 8
  • 30
5
votes
1 answer

Show discount in Schema.org

I have a product which has reduced price. I want to show both prices - original and discounted. Is there a way to mark this in Schema.org? For now I have something similar:
5
votes
1 answer

Why is an image URL an invalid item type for an image in a BlogPosting?

I have the following item on a webpage which I'm defining as a Scheme.org Article. The details have been obsfucated, but all of the genuine URLs work.
Sinister Beard
  • 3,570
  • 12
  • 59
  • 95
5
votes
1 answer

Marking imprecise durations in recipe microdata

It's easy to markup a recipe's cooking or preparation time if it's for a specific time range: Prep time: Cook time: However, many…
user458541
5
votes
1 answer

Using itemprop="articleBody" on Multiple Elements (schema.org)

Is it bad practice to use itemprop="articleBody" on multiple elements. I ask because my page looks like this:

My…

realph
  • 4,481
  • 13
  • 49
  • 104
5
votes
1 answer

News item in Schema.org

I'm currently working on a news page for a website. Since I don't find any news example on http://schema.org/, I was wondering what's the best Schema.org type for this?
  • 5
    votes
    3 answers

    schema.org microdata: Do as schema.org says, or as Google says?

    When adding microdata to my sites, I use the vocabulary at schema.org. At the moment, I use http://schema.org/SoftwareApplication to markup software. Since the format is a bit underspecified at schema.org (for instance, what is the difference…
    Andreas Rejbrand
    • 105,602
    • 8
    • 282
    • 384
    5
    votes
    1 answer

    How can I use schema.org to label a person (without repeating myself) as both a member of an organization and the author of a book?

    I'm trying to add schema.org markup to a site for a law firm (itemtype=schema.org/Attorney). That site contains a page dedicated to each lawyer in the firm (itemtype=schema.org/Person). Those profile pages include a list of published works (e.g.…
    Matt R
    • 105
    • 6
    5
    votes
    1 answer

    Using schema.org branchOf with itemref

    I have a company page that has all the local branches listed on it. On the page header, I have an itemType of Organization defined. Each LocalBusiness (Hotel) is further down the page. For each Hotel, I'm trying to add the branchOf property using…
    user3199410
    • 51
    • 1
    • 3