问题原文
原帖链接 · Martijn · CC BY-SA 3.0
This is borderline 'too broad', but I'm hoping for some documentation about this, which is hard to find.
Think of a webshop, specifically a product overview. The products themself need html to be build and consist of an image, title, brandname and a price. Would there be a noticable different between the following, or is there another better way?
Option A:
<a class="Product" href="#">
<img />
<p class="Brandname">Brand name</p>
<p class="Productname">Product Name</p>
<p class="Price">€ 100</p>
</a>
Option B:
<a class="Product" href="#">
<img />
<h5>Brand name</h5>
<h4>Product Name</h4>
<p>€ 100</p>
</a>
We currently have Option A and don't score very well for our productoverviews. My assumed logic is that Version B marks the importance of certain parts of a product better, or at the very least indicate difference between the title/brand/price by using different tags.
I can't find documentation about this, nor anything related.
社区高分解答
原帖链接 · Stephen Ostermiller · CC BY-SA 3.0
Here is an article that has the same answer I would give: H3, H4, H5, and H6 tags are not useful for SEO.
They do however show how heading should be used on a category page and do recommend putting each product name into an H2:
Category page:
H1: Category title.H2: Titles of products listed.H3: In most cases nothing.H4: In most cases nothing.H5: In most cases nothing.H6: In most cases nothing.
I've also read recently that some SEO testing has shown that heading tags in and of themselves do nothing for SEO. Adjusting font size and weight with CSS has the same effect as using the equivalent heading tag.
There is going to be almost no difference between your two proposed markups.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
