2.标签.html 765 B

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. </head>
  8. <body>
  9. <div>
  10. <!--
  11. HTML为什么要语义化?
  12. 1.便携开发,提高开发效率
  13. 2.方便搜索引擎查找内容
  14. <header> 定义页面头部内容
  15. <nav> 定义导航内容
  16. <article> 定义文章内容
  17. <aside> 定义侧边框
  18. <section> 定义文章中的一块内容
  19. <footer> 定义页尾内容
  20. -->
  21. <header></header>
  22. <nav></nav>
  23. <aside></aside>
  24. <article></article>
  25. <section></section>
  26. <footer></footer>
  27. </div>
  28. </body>
  29. </html>