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 results-driven B2B marketing consultant with 15+ years of experience helping businesses boost online visibility, generate qualified leads, and increase sales. Specializing in SEO, HubSpot, and PPC campaign management, Jake leverages proven strategies to deliver measurable growth. As a Certified Google Ads Specialist and HubSpot Developer, he is committed to driving impactful results for his clients.

Related posts

Tags:

Want to Get Email Updates of New Articles?

Join My Email Newsletter