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

DOMXPATH-> not getting first elements of div

I'm using DOMXPath to get the content of specific nodes. For my problem, I want to get all the text of the matching divs except that of nested divs. $html = '
Fatima Zohra
  • 2,929
  • 2
  • 17
  • 17
0
votes
1 answer

Schema type for "Bookmark" items

Is there an appropriate schema type for bookmark items such as in Reddit, Digg, etc.? Is it OK to use the "Article"?
Ramil
  • 91
  • 1
  • 2
  • 10
0
votes
1 answer

Marking up a bottle of wine with Schema.org and Good Relations Product

I have tried to mark up the kind of information you'd offer when you're selling a premium wine, here's what it looks like: http://www.google.com/webmasters/tools/richsnippets?url=dekoninck.co.uk%2Fwine.html. The Rich Snippets Tools is showing…
iwein
  • 51
  • 1
  • 6
0
votes
2 answers

Add microdata to a Drupal site

Is there a way to add microdata to a Drupal 7 site by editing the field.tpl files? My site is built using panels and views so http://drupal.org/project/microdata isn't working. Is there another way to go about adding microdata by hard…
LTech
  • 1,677
  • 5
  • 29
  • 48
0
votes
1 answer

is it possible to set microdata to an element that contains two pieces of information

Is it possible to include itemprop="name" and itemprop="contentURL" in the same element? as in the example bellow : echo '
  • '; echo '
    coiso
    • 7,151
    • 12
    • 44
    • 63
  • 0
    votes
    1 answer

    Microdata & Vocabulary

    I'm working on forum software, and looking to use HTML5 and Microdata(new to microdata). I was considering adding vocabulary to the software itself, instead of linking to schema or data-vocabulary, or whatever. Then again, I wondered about the…
    Xarcell
    • 2,011
    • 6
    • 33
    • 65
    0
    votes
    1 answer

    using Microdata in index.php or single.php?

    I'm using wordpress and now wanna use microdatas for my posts. But I'm confused that i should use them on index.php or just in single.php ? (e.g. Author name, Rating, Author Image, ...)
    revo
    • 47,783
    • 14
    • 74
    • 117
    0
    votes
    1 answer

    Google Webmaster Tools "Incomplete microdata with schema.org" error for rich snippets

    I have problem with rich snippets in google webmaster tools when I try to test the link - > http://www.google.com/webmasters/tools/richsnippets?url=http%3A%2F%2Fjimfish.de%2Fabu-garcia-revo-stx-l-lh-multirolle&html=" I receive the error: Incomplete…
    Denis Baciu
    • 149
    • 8
    0
    votes
    1 answer

    itemprop refering to an outer itemscope

    I have an itemscope for an event containing a table with attendees. I would like to be able at the same time to have the table as itemscope itemtype="[...]Table" and the rows of the table as itemprop="attendee" referring to the outer itemscope…
    Krastanov
    • 6,479
    • 3
    • 29
    • 42
    0
    votes
    1 answer

    Using schema.org microdata for Database Content

    I was wondering if one can mark text fields with schema.org microdata for fields which will contain values retrieved from a database, but which are initially empty upon loading the web page. Basically, I have some fields that I would like to mark…
    JF0001
    • 819
    • 7
    • 30
    0
    votes
    1 answer

    Microdata usage for a blog post

    I have a blog page and I am not sure if I understood the schema.org microdata correctly. I have a few cases in which I am unsure and I think it would be good to discuss them. My code: …
    Jurian Sluiman
    • 13,498
    • 3
    • 67
    • 99
    0
    votes
    1 answer

    SEO: Using structured data to display a category when searching google

    I'm trying to use structured data to ensure that a website contains a category in googles search results. You can see what I mean in this example: http://tinyurl.com/95lryvn In the example it shows 'Ergonomic Chairs' as the category. I've been…
    Kyle
    • 17,317
    • 32
    • 140
    • 246
    0
    votes
    1 answer

    How to use microformats

    I'm trying to add some microformats to my site and testing with google Structured Data Testing Tool is giving me a Warning: Itemtype not recognized. What would be the right syntax to get it through?
    kakuki
    • 587
    • 2
    • 9
    • 20
    0
    votes
    1 answer

    Yii PHP Command Line App for extraction of Microdata values NOT working

    I want to extract Microdata values. I use a Yii App runned from the command line, using Putty. The following code does not generate any output; in $this->input->html i store an entire html document source; I think that somewhere at $content = new…
    Ionut Flavius Pogacian
    • 4,750
    • 14
    • 58
    • 100
    0
    votes
    2 answers

    List of book (references) microdata

    I have a list of books that goes like this Title, Author(s), Publisher Title, Author(s), Publisher Title, Author(s), Publisher Title, Author(s), Publisher ... After reading about HTML5 and microdata I think, correct me if I am wrong, that could…