如何将架构标记添加到 FAQ HTML 代码

问题描述 投票:0回答:1
html schema
1个回答
0
投票

答案:

<div class="ts-faq-accordion-content" itemscope itemtype="http://schema.org/FAQPage">

  <div class="ts-faq-accordion-item" itemprop="mainEntity" itemscope itemtype="http://schema.org/Question">
      <div class="ts-faq-item-header">
          <h4 class="ts-faq-item-question" itemprop="name">
            How to add schema markup to FAQ HTML code?
          </h4>
      <div class="ts-faq-item-icon">
        <i class="down-icon"></i>
      </div>
    </div>
    <div class="ts-faq-item-content" itemprop="acceptedAnswer" itemscope itemtype="http://schema.org/Answer">
        <p class="ts-faq-item-answer" itemprop="text">
          Your Content Meets Google Guidelines for FAQPage. Google has guidelines you need to follow in order to enable rich results.
        </p>
    </div>
  </div>
  
</div>
© www.soinside.com 2019 - 2024. All rights reserved.