html5 – 产品列表的文章,部分或div?

我正在从事一个电子商务项目,无法解决是否使用文章,部分或div来包装产品列表.

有几个部分跟随它的东西,如promos,我不想使用div,因为以下部分将有更大的意义和破坏它,但它应该比以下部分更大的意义.

我正在考虑文章标签,但我找不到在博客以外使用的示例.我注意到人们认为单一项目(产品页面)可以接受,但是应该采用什么方法来浏览产品列表?

解决方法

section specification是非常有启发性的:

The section element represents a generic document or application section. A section,in this context,is a thematic grouping of content,typically with a heading,possibly with a footer.

Note: The section element is not a generic container element. When an element is needed for styling purposes or as a convenience for scripting,authors are encouraged to use the div element instead.

如果许多元素是主题相关的,并且可以在共同的标题(例如“鞋”)下分组在一起,则将产品包装在一个部分中.

如果您正在包装的元素不相关,则不能将其分组在一个通用标题下,并且正在被包装以便进行样式化,然后使用div.

为了完整,article标签代表(从同一页):

a self-contained composition in a document,page,application,or site and that is,in principle,independently distributable or reusable,e.g. in syndication. This Could be a forum post,a magazine or newspaper article,a blog entry,a user-submitted comment,an interactive widget or gadget,or any other independent item of content.

所以您的销售项目将分别是该部分中的一篇文章.

作为最后一个注意事项,我不会将整个页面包含在< div role =“main”&gt ;:中:标题位于主要内容之外.

相关文章

HTML5和CSS3实现3D展示商品信息的代码
利用HTML5中的Canvas绘制笑脸的代码
Html5剪切板功能的实现
如何通过HTML5触摸事件实现移动端简易进度条
Html5移动端获奖无缝滚动动画实现
关于HTML5和CSS3实现机器猫的代码