两种简单的html5

第一种:

<!DOCTYPE html>
<html>
<head>
<meta http-equie="Content-type" content="text/html;charset=utf-8" />
<title>使用HTML5结构化元素</title>
<style type="text/css">
    #header,#siderLeft,#siderRight,#footer {
        border:solid 1px #666;
        padding:10px;
        margin:6px;
    }
    
    #header {
        width:800px;
    }
    
    #siderLeft {
        float:left;
        height:100px;
        width:60px;
    }
    
    #siderRight {
        float:left;
        height:100px;
        width:706px;
    }
    
    #footer {
        clear:both;
        width:800px;
    }
</style>
</head>
<body>
<div id="header">导航</div>
<div id="siderLeft">菜单</div>
<div id="siderRight">内容</div>
<div id="footer">底部内容</div>
</body>
</html>

效果:

两种简单的html5


第二种:

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>html5支持的页面</title>
<style type="text/css">
    header,nav,article,footer {
        border:solid 1px #666;
        padding:10px;
        margin:6px;
    }
    
    header {
        width:800px;
    }
    
    nav {
        float:left;
        height:100px;
        width:60px;
    }
    
    article {
        float:left;
        height:100px;
        width:706px;
    }
    
    footer {
        clear:both;
        width:800px;
    }
</style>
</head>
<body>

<header>导航</header>
<nav>菜单</nav>
<article>内容</article>
<footer>底部说明</footer>
</body>
</html>

两种简单的html5