本文翻译自:What is the difference between and
?
#1楼
#2楼
Just an observation - haven't found any documentation corroborating this 只是一个观察 - 没有找到任何证实这一点的文件
<section>
<h1>Level1</h1>
some text
<section>
<h1>Level2</h1>
some more text
</section>
</section>
#3楼
<div> Vs <Section>
Round 1 第1轮
Round 2 第2轮
<div>: Browser Support <div>: 浏览器支持 
<section>: Browser Support <section>: 浏览器支持
#4楼
The <div> tag defines a division or a section in an HTML document. <div>标签定义HTML文档中的分区或部分。
#5楼
The <div> element is defined as a block of children elements. <div>元素被定义为子元素块。
#6楼
<html> <head></head> <body> <header></header> <section> <h1></h1> <div> <span></span> </div> <div></div> </section> <footer></footer> </body> </html>
本文详细对比了HTML5中<section>和<div>元素的使用场景和语义差异。<section>用于文档的主题分组,带有标题,对搜索引擎友好;而<div>则是通用容器,主要用于样式和布局。文章还介绍了这两个元素在不同浏览器中的表现。

1836

被折叠的 条评论
为什么被折叠?



