html5 – 在什么情况下你使用html 5的标签代替?

前端之家收集整理的这篇文章主要介绍了html5 – 在什么情况下你使用html 5的标签代替?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
您在什么情况下使用< section>标签html 5,代替< div&gt ;???

解决方法

Examples of sections would be chapters,the var@R_404_437@s tabbed pages in a tabbed dialog Box,or the numbered sections of a thesis. A Web site’s home page could be split into sections for an introduction,news items,and contact information

The section element represents a generic document or application section…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.

Source

Further Reading

另见When to use the section element

原文链接:https://www.f2er.com/html5/168998.html

猜你在找的HTML5相关文章