Mobile app version of topseosmo.com
Login or Join

Login to follow query

More posts by @Miguel251

1 Comments

Sorted by latest first Latest Oldest Best

 

@Pope3001725

You want to apply the properties identified in both the Question scheme and Answer scheme as defined on Schema.org.

In particular and at minimum, use the following attributes/properties:


itemscope itemtype="http://schema.org/Question" on the DOM element wrapping entire set of question & answer content
itemprop="name" (typically on an H1) wrapping the individual question
itemprop="acceptedAnswer" itemscope itemtype="http://schema.org/Answer" on the DOM element wrapping the accepted answer
itemprop="suggestedAnswer" itemscope itemtype="http://schema.org/Answer" on the DOM element wrapping other answers


You may also (optionally) want to consider attributing questions and answers to individual people/users, using the Person scheme.



Below are screenshots of one of the examples from schema.org for quick reference.

Microdata


RDFa


JSON-LD

10% popularity Vote Up Vote Down


Report

Back to top | Use Dark Theme