页面结构分析

页面结构分析

元素名 描述
header 标题头部区域的内容(用于页面或页面中的一块区域)
footer 标记脚部区域的内容(用于页面或页面中的一块区域)
section web页面中一块独立区域
article 独立的文章内容
aside 相关内容或应用(常用于侧边栏)
nav 导航类辅助内容

示例代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<header>
    <h2>头部区域</h2>
</header>
<nav>
    <h2>导航区域</h2>
</nav>

<section>
    独立区域
</section>

<footer>
    <h2>脚部区域</h2>
</footer>
</body>
</html>
posted @ 2022-03-26 16:47  Oh,mydream!  阅读(30)  评论(0编辑  收藏  举报