简体   繁体   English

HTML 微数据可以用于多个开始日期吗?

[英]Can HTML microdata be used for multiple start dates?

Using HTML microdata to markup events with single dates is straightforward.使用 HTML 微数据标记具有单个日期的事件非常简单。 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来自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.换句话说,如果需要,使用 JSON-LD 来标记您更改日期和/或更多信息的多个事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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