www.webdeveloper.com
Results 1 to 4 of 4

Thread: What are rich snippits?

  1. #1
    Join Date
    May 2013
    Posts
    119

    What are rich snippits?

    Hi friends,
    I am new in web developing, help let me know about rich snippints, what is this? please share your feedback.
    Thanks.

  2. #2
    Join Date
    Mar 2011
    Posts
    1,136

  3. #3
    Join Date
    Sep 2012
    Posts
    720
    Rich snippets are designed to summarize the content of a page in a way that makes it even easier for users to understand what the page is about.

  4. #4
    Join Date
    May 2013
    Location
    Surendranagar Gujarat India
    Posts
    55
    There a few things I am noticing here.

    Unless, I misunderstand, this is a music event, so you should probably use the more specific itemtype="http://schema.org/MusicEvent".

    The "location" itemprop also needs to be an itemtype of http://schema.org/Place or http://schema.org/PostalAddress. This will also solve your name itemprop issue. So for example:

    <span itemprop="location" itemscope itemtype="http://schema.org/Place>
    <span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress>
    <span itemprop="addressLocality">City</span>,
    <span itemprop="addressRegion">State</span>
    </span>
    <span itemprop="name">Venue Name</span>
    </span>

    See my next point on why I left out the url itemprop.

    The offers property is another itemtype, so you'll want something like this:

    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer>
    <a href="http://ticketlink.com" itemprop="url">Presale tickets</a>
    </div>

    However, I'm not entirely sure that you can have a link to another domain in a url itemprop. This is undocumented but I've yet to see an example of one that does. You may need to leave out the offer itemprop and just let Google bring in ticket information from ticketlink themselves.

    Please see my answer to your other question about how these rich snippet links you're trying to reproduce are actually being populated in search results.

    UPDATE: Here is the final code snippet that passes the Testing Tool

    <div itemscope itemtype="http://schema.org/MusicGroup">
    <h1 itemprop="name">Name</h1>

    <div itemprop="events" itemscope itemtype="http://schema.org/MusicEvent">
    <meta itemprop="startDate" content="2012-02-02">Date &mdash;
    <span itemprop="name">Event Name</span>
    <span itemprop="location" itemscope itemtype="http://schema.org/Place">
    <span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
    <span itemprop="addressLocality">City</span>,
    <span itemprop="addressRegion">State</span>
    </span>-
    <span itemprop="name">Venue Name</span> -
    </span>
    <a href="http://ticketlink.com" itemprop="offers">Buy tickets</a>
    </div>
    </div>



    Kishor Makwana
    Software Engineer
    Insight Softech
    www.insightsoftech.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles