我们正在讨论在产品列表页面中使用h1
标签。有几个方面可以用来过滤产品。HTML5语义 - 产品列表中的h1用法
技术上明智的做法是使用多个h1
标签,如果这些标签被封装在section
或article
中即可。但是我们正在讨论如果在制表人中使用h1
也是有用的,我们只有标题,包装和价格。在我们看来,选择h1
并不是一个好主意,而(SEO明智的)有意义的内容不见了。
以下是1款产品的标记。没有选择方面,我们列出了100多种产品(延迟加载)。
<div class="productItem--vView productItem" data-webid="productLister-item">
<article>
<a class="wrap" href="/products/category">
<header>
<h1><span>product x</span></h1>
<div class="meta">
<div class="spec price price--new">
<div class="value">
<span class="currency">€</span> 10<span class="decimal">.00</span>
<span class="type">new</span>
</div>
</div>
</div>
</header>
<figure>
<div class="image">
<div class="graphic">
<img src='https://placeholdit.imgix.net/~text?txtsize=33&txt=350%C3%97150&w=230&h=300'/>
</div>
</div>
</figure>
</a>
</article>
</div>
在这里使用h1
是否正确,以及这里最好的选择是什么。 h2
?
我会使用H2产品标题,保留h1的类别和促销件。 (排名为关键字搜索的产品)可能?到目前为止,我只是随便看看SEO的东西。 – Hughzi
请阅读此:https://www.paciellogroup.com/blog/2013/10/html5-document-outline/ – Alohci