I was trying to add schema.org (microdata) to my articles. I read code a put it on the website. I published page and expected to see valid code, instead, when I was checked (CTRL-U) I saw that there were new tags (<p>, and </span>
Example:
My code:
<h2>FAQ</h2><div itemscope itemtype=”https://schema.org/FAQPage”> <meta itemprop=”mainEntityOfPage” content=”https://url.com/”><dl><span itemprop=”mainEntity” itemscope itemtype=”http://schema.org/Question”><dt itemprop=”name”>My Question here?</dt><dd itemprop=”acceptedAnswer” itemscope=”” itemtype=”http://schema.org/Answer”><span itemprop=”text”>My Answer</span></dd></span></dl></div>
On the website:
<div itemscope itemtype=”https://schema.org/FAQPage”> <meta itemprop=”mainEntityOfPage” content=”https://url.com/”></p>
<h2 itemprop=”name”></h2>
<dl><span itemprop=”mainEntity” itemscope itemtype=”http://schema.org/Question”></p>
<dt itemprop=”name”>My Question here?</dt>
<dd itemprop=”acceptedAnswer” itemscope=”” itemtype=”http://schema.org/Answer”><span itemprop=”text”>My Answer</span></dd>
<p></span><span itemprop=”mainEntity” itemscope itemtype=”http://schema.org/Question”></p>
3 tags – </p>
1 tag – <p>
1 extra </span>