title: Right way to set microdata for Q&A HTML
body: <p>Say one has a simple question and answer HTML and would like to add microdata, how should one proceed?</p>
  
  <pre><code>&lt;h2&gt;My Question&lt;/h2&gt;
  &lt;p&gt;My Answer&lt;/p&gt;
  </code></pre>
  
  <p>I am aware of the <a href="http://schema.org/Question" rel="noreferrer">schema.org</a> example, but I don't find it very clear. It looks like overkill. I need a simple solution. Can I proceed this way?</p>
  
  <pre><code>&lt;h2 itemscope itemtype="http://schema.org/Question"&gt;My Question&lt;/h2&gt;
  &lt;p itemscope itemtype="http://schema.org/Answer"&gt;My Answer&lt;/p&gt;
  </code></pre>
  
  <p>I just want to tell what the question is and what the answer is. Is this enough for search engines? Or should I have something more sophisticated like:</p>
  
  <pre><code>&lt;div itemscope itemtype="http://schema.org/Question"&gt;
    &lt;h2 itemprop="name"&gt;My Question&lt;/h2&gt;
    &lt;p itemscope itemtype="http://schema.org/Answer"&gt;My Answer&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Is using <code>itemprop="name"</code> the right way to tell what the question is? What is the difference between <code>itemprop="name"</code> and <code>itemprop="text"</code> in the schema.org example mentioned above?</p>