当前阅读教程:HTML5入门电子教程 > HTML5 section 元素 | |
阅读(22555525) 收藏 赞(5685) 分享 | |
上一篇: HTML5 语义元素 | 下一篇: HTML5 article 元素 |
<section> 标签定义文档section 中的节(、区段)。比如章节、页眉、页脚或文档 中的其他部分。 根据W3C HTML5文档 section :包含了一组内容及其标题。下面我们来看下在网页中的效果,示例 代码如下: <!doctype html> <html> <head> <meta charset="utf-8"> <title>HTML5 section 元素</title> </head> <body>
<section> <h1>WWF</h1> <p>The World Wide Fund for Nature (WWF) is an international organization working on issues regarding the conservation, research and restoration of the environment, formerly named the World Wildlife Fund. WWF was founded in 1961.</p> </section>
<section> <h1>WWF's Panda symbol</h1> <p>The Panda has become the symbol of WWF. The well-known panda logo of WWF originated from a panda named Chi Chi that was transferred from the Beijing Zoo to the London Zoo in the same year of the establishment of WWF.</p> </section>
</body> </html> 效果如图8-11。 |
|
上一篇: HTML5 语义元素 | 下一篇: HTML5 article 元素 |