I currently have a description at the top of my category pages (woocommerce) of the form
<div><input id="post-1" class="read-more-state" type="checkbox" />
<div class="read-more-wrap">
<h2>Title-2</h2>
<p>paragraph - 1.</p>
<div class="read-more-target">
<div>Descriptiob Part 1.</div>
<div>Description part 2.</div>
</div>
</div>
<label class="read-more-trigger" for="post-1"></label>
</div>
You will notice that the description part 1 and 2 are wrapped in <div>
rather than <p>
. I have tried to wrap in <p>
but is then stops the show more functionality working so I have been foced to use div
elements.
My question is, as far as search engines are concerned, does it make any difference whether the text be wrapped in div
or p
? Or does the search engine interpret the data in the same way?
So whether wrapped in div
or p
, would search engines see this as a description and be able to associate it with the relevant search? Or would it only be the first part - <h2>…</h2>…<p></p>
that gets used?
.class
and#id
and just use a container class and then you style with the type. For example:.box input
.box label
.box > div /* first div in the box */
.box > div > div /* first divs within the div within the box /*
.box h2
.box p
etcdiv
orp
search engines will interpret the information in the same way?