1

我对 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>
4

1 回答 1

0

有关使用附加类型的说明,请参阅嵌套模式。它基本上像 itemtype 一样工作。

于 2013-10-16T18:18:26.863 回答