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>

 


About the Author

Jacob Lett is the founder of Bootstrap Creative, a digital marketing consultancy that helps Michigan manufacturers generate qualified leads through HubSpot, technical SEO, and Google Ads. With over a decade of hands-on experience, he acts as a direct partner for B2B companies seeking measurable ROI from their marketing investment.



Related posts

Tags:

| Read My Editorial Policy

Want to Get Email Updates of New Articles?

Join My Email Newsletter