html5 – 或者,其中包含

前端之家收集整理的这篇文章主要介绍了html5 – 或者,其中包含前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
试图让我的头脑围绕 HTML5中的新语义元素.

< section>属于< article>或者是周围的其他方式?还有什么关系吗

我正在重新构建一个wordpress博客.

解决方法

HTML5 spec

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

The article element represents an independent section of a document,page,or site. This could be a forum post,a magazine or newspaper article,a blog entry,a user-submitted comment,or any other independent item of content.

所以我会说这两个部分和文章元素可以包含其他元素,如果合适的话.我认为你的图表是有意义的,除了嵌套的部分元素:

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. A general rule is that the section element is appropriate only if the element’s contents would be listed explicitly in the document’s outline.

也许使用< div>对于外面的?

原文链接:/html5/168604.html

猜你在找的HTML5相关文章