FAQ Schema Microdata Code Snippet


FAQ Schema Microdata Code Snippet

Below is a FAQ microdata schema code template you can copy and paste and add to your page HTML. You would repeat the .faq-question div block for each QA answer set. Once you are done adding your markup you can test it in the Google schema tester.

If you are using WordPress, I noticed the rich text editor strips out the important microdata code. I found this plugin that prevents this and makes it work as it should.

<div class="schema-faq-code" itemscope="" itemtype="https://schema.org/FAQPage">
    <h4>Frequently asked questions</h4>
    <hr />
    <!-- repeat question blocks as needed -->
    <div itemscope="" itemprop="mainEntity" itemtype="https://schema.org/Question" class="faq-question">
        <h3 itemprop="name" itemprop="name" class="faq-q">Question text</h3>
        <div itemscope="" itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
             <p itemprop="text" itemprop="text" class="faq-a">Answer text</p>
        </div>
    </div>
    <!-- /.faq-question -->
</div>

 



Written by: Jake Lett
Jake Lett is a B2B marketing consultant with over 15 years of experience in the digital marketing industry. He specializes in SEO, HubSpot, and PPC campaign management. Jake has a proven track record of helping businesses increase their online visibility and drive more traffic, leads and sales. He is a Certified Google Ads Specialist and a Certified HubSpot Developer.

Related posts

Tags:

Want to Get Email Updates of New Articles?

Join My Email Newsletter