HTML5 学习

1.<header> 标签定义文档的页眉(介绍信息) 标签是 HTML 5 中的新标签

<header>
   <h1>Welcome to my homepage</h1>
   <p>My name is Donald Duck</p>
</header>

2.<nav> 标签定义导航链接的部分

<nav>
   <a href="#">test1</a>
   <a href="#">test2</a>
</nav>

3.<section> 标签定义文档中的节(section、区段)比如章节、页眉、页脚或文档中的其他部分

<section>
  <h1>PRC</h1>
  <p>The People's Republic of China was born in 1949...</p>
</section>

4.<article> 文章内容或者主体内容 标签规定独立的自包含内容

<article>
  <h1>Internet Explorer 9</h1>
  <p>Windows Internet Explorer 9(简称 IE9)于 2011 年 3 月 14 日发布.....</p>
</article>

5.<aside> 标签定义其所处内容之外的内容

<p>Me and my family visited The Epcot center this summer.</p>
<aside>
   <h4>Epcot Center</h4>
    The Epcot Center is a theme park in Disney World, Florida.
</aside>

6.<footer> 标签定义文档或节的页脚 可以在一个文档中使用多个 <footer> 元素

   <footer> 元素应当含有其包含元素的信息 页脚通常包含文档的作者、版权信息、使用条款链接、联系信息等

 <footer>
   <p>Address:xxxxxx</p>
   <p>Contact information: <a href="mailto:someone@example.com">someone@example.com</a>.</p>
</footer>
原文地址:https://www.cnblogs.com/1312mn/p/5144326.html