HTML5的特性以标签的形式存在
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        header{
            width: 100%;
            height: 100%;
            background-color: yellow;
        }
        main {
            width: 80%;
            height: 100%;
            background-color: gray;
            }
        main>article {
            width: 80%;
            height: 100%;
            background-color: gray;
        }
        footer{
            width: 80%;
            height: 100%;
        }
    </style>
</head>
<body>
<header>头部</header>
<nav>导航</nav>
<main>
    <article>左边</article>
    <aside>右边</aside>
</main>
<footer>底部</footer>
</body>
</html>点击 "运行实例" 按钮查看在线实例
PS:以上标签都是块级标签
                Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号