简体   繁体   中英

Can HTML microdata be used for multiple start dates?

Using HTML microdata to markup events with single dates is straightforward. What is the proper way to achieve markup for an event with multiple start dates? Especially those with no end date.

For example:

<div class="event">
    <div class="details">
        <h2>Course One</h2>
        <p class="desc">
            This course is relevant for any customers </p>
        <p class="dates">Dates: 9/8, 10/10, 10/31, 12/5</p>
        <p>
            <a class="btn" href="#">Course Details</a></p>
    </div>
</div>

An event happening at a certain time and location, such as a concert, lecture, or festival. Ticketing information may be added via the offers property. Repeated events may be structured as separate Event objects.

From http://schema.org/Event

You can do this in microdata, but that will result in several identical descriptions among other things.

In other words, use JSON-LD to markup several events where you change the date and/or more information if needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM