Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a list of events that change over time, so items get added while others drop off after their dates expire. For point of reference, they are conventions. I've never used microdata before and would like to lay out the page correctly.

Should the whole page be an itemscope or the individual entries? Because if you look at this example:

<div itemscope itemtype="http://www.domain.org/events">

The URL that has the events list is events just like that example. If you have each entry with that URL , wouldn't that be a major mistake? So I am assuming itemscope should be used for the entire page of entries? If that's right, what tag should I use instead of itemscope to identify each entry in the list of events?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Each itemscope creates an (= one) item.

What this item should be, depends on the vocabulary you use. Both cases are conceivable: an item could be a list of events, or it could be a specific event. If the item would be a list of events, each event (that is part of this list) would itself be another, different item.

If you want to use the schema.org vocabulary, each event would be of type http://schema.org/Event (resp. a more specific type).

So a webpage with information about 3 (different!) events could look like:

<section>
  <h1>Events</h1>

  <article itemscope itemtype="http://schema.org/Event">
  …
  </article>

  <article itemscope itemtype="http://schema.org/Event">
  …
  </article>

  <article itemscope itemtype="http://schema.org/Event">
  …
  </article>

</section>

(Depending on your actual content, a list (e.g., ul resp. ol) might be appropriate.)

schema.org doesn’t define a type for a list of events. But there is a general list type: http://schema.org/ItemList

A list of items of any sort—for example, Top 10 Movies About Weathermen, or Top 100 Party Songs.

So if you think that this is appropriate for your page, it could look like:

<section itemscope itemtype="http://schema.org/ItemList">
  <h1>Events</h1>

  <article itemprop="itemListElement" itemscope itemtype="http://schema.org/Event">
  …
  </article>

  <article itemprop="itemListElement" itemscope itemtype="http://schema.org/Event">
  …
  </article>

  <article itemprop="itemListElement" itemscope itemtype="http://schema.org/Event">
  …
  </article>

</section>

Now this list (ItemList) has three (itemListElement) events (Event).

share|improve this answer
    
So assuming your second example, a list of conventions could be itemscopes defined as itemlistelements inside an itemscope. However, the article's url itemtype, should it have the same url as the main itemscope since they are listed on the same page? My list of Conventions has 3 links associated with each article, they are the link to the Convention, a comments page and a list of activities. The second 2 links are on this site while the convention list obviously isn't. –  Maelish Jan 5 at 14:49
    
@Maelish: I’m not sure if I understand you. itemtype does not contain the URL of the item. It is a URL that describes the kind of item (here: it’s an Event). If you want to provide an URL of the event, you could use the url property. –  unor Jan 6 at 0:21
    
I guess this part is confusing me itemtype="http://schema.org/Event. –  Maelish Jan 6 at 2:49
add comment

It depends on how your page is structured and what the main theme of your page is. If the entire page consists of events at one particular venue, then I would recommend using the venue as your primary itemscope itemtype then including the various event markups within it. It would also be a good idea to create a separate page for each event so that you can include a unique URL for each event. If you want your event rich snippets to appear in Google, that is one of their requirements when a page lists multiple events.

share|improve this answer
1  
Some of the the Events do have Activities beneath them when you click through to the next page. Thats a good idea! –  Maelish Jan 5 at 14:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.