一.html4和html5對比

h5新的寫法.png

傳統(tǒng)的寫法.png
二.html5的標(biāo)簽
- header------頁面的頭部
<header></header> - main------頁面的主體內(nèi)容(每個頁面只能有一個)
<main></main> - section------劃分區(qū)域(相當(dāng)于html4中的div)
<section></section> - article------劃分文章每章節(jié)(article里面可以放多個aside)
<article></article> - nav----導(dǎo)航區(qū)域
<nav> ul>li </nav> - footer------底部導(dǎo)航
<footer></footer> - figure------新聞形式的組合(文字主標(biāo)題 副標(biāo)題和圖片組合)
<figure> <h1></h1> <h5></h5> </figure> - hgroup------標(biāo)題和子標(biāo)題的組合
<hgroup> <h1></h1> <h5></h5> </hgroup>