使用additionalType架构prop

时间:2013-03-20 17:44:48

标签: html5 schema.org

我对additionalType属性有疑问。我想知道两件事。首先,我在这两个例子中都正确编码。第二,最好不要使用它,而只是在每个实例中使用不同的类型。例如,本地业务信息每页重复至少4次,我每次只能使用不同的类型。与所提供服务的描述相同。任何意见是极大的赞赏。

<section itemscope itemtype="http://schema.org/LocalBusiness">
    <link itemprop="additionalType" href="http://schema.org/SportsActivityLocation"/>
    <link itemprop="additionalType" href="http://schema.org/ExerciseGym"/>
    <header>
        <h5 class="Bold DarkBlue TextCenter MyriadFont"><span class="DarkRed" itemprop="telephone">Call 201-230-2036</span><br />
        </header>
        <span itemprop="name">Martial Arts School Name</span><br />
        <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
            <span itemprop="streetAddress">24 Bortker Street</span>
            <span itemprop="addressLocality">Brentwood</span>,
            <span itemprop="addressRegion">Ca</span>
            <span itemprop="postalCode">07565</span>
        </div>
    </h5>
    <br />
    <br />
</section>

<section itemscope itemtype="http://schema.org/LeisureTimeActivity">
    <link itemprop="additionalType" href="http://schema.org/AnaerobicActivity"/>
    <link itemprop="additionalType" href="http://schema.org/StrengthTraining"/>
    <header>
        <h5 itemprop="BusinessFunction" class="DarkBlue MyriadFont">Try These Martial Arts Programs FREE for 30 Days:</h5>
    </header>
    <br />
    <div class="TextNormal" style="padding-left:50px;">
        <hgroup>
            <h1 class="Bold" itemprop="BusinessFunction" >Gracie Brazilian Jiu-Jitsu</h1>
            <p>Learn the single most effective self-defense system on Earth (and the official hand-to-hand combat system of the U.S. Military) from a Gracie-trained Black Belt with multiple champion titles ... Click Here For The Best <a itemprop="URL" href="//www.martialarts.com/brazilian-jiujitsu.html" class="Bold DarkRed"><u> BJJ In Broter County CA</u></a></p>
            <br /><br />
        </hgroup>
    </div>
</section>

1 个答案:

答案 0 :(得分:0)

有关使用additionalType的说明,请参阅Nesting schemas。它基本上像itemtype一样工作。