位置:电子教程 > HTML5入门电子教程 (如果看不到内容请使用360浏览器) 推荐学习资源
HTML5 简介
HTML5 Canvas教程
HTML5 基础标签
HTML5 表单属性和input详解
HTML5 高级部分
当前阅读教程:HTML5入门电子教程 > HTML5 section 元素
阅读(22555525)      收藏       赞(5685)      分享
上一篇: HTML5 语义元素 下一篇: HTML5 article 元素

<section> 标签定义文档小白教程网中的节(section、区段)。比如章节、页眉、页脚或文档小白教程网中的其他部分。

根据W3C HTML5文档小白教程网 section 包含了一组内容及其标题。下面我们来看下在网页中的效果,示例

小白教程网www.2d5.net

代码如下:

<!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

image.png



上一篇: HTML5 语义元素 下一篇: HTML5 article 元素
计算机毕业设计作品网      毕业设计文档网      小程序教程网       毕业设计资料网  |         毕业设计定制QQ:45157718(微信同号)(备注:毕设)