HTML5內置了許多設置,這些設置可以使網頁更加美觀和交互性更強。下面是一些常見的HTML5內置設置:
<header> <h1>This is a header</h1> <p>This is a paragraph in the header</p> </header> <nav> <a href="#">Home</a> <a href="#">About</a> <a href="#">Contact</a> </nav> <article> <header> <h1>This is an article</h1> <p>This is a paragraph in the article header</p> </header> <p>This is the content of the article.</p> <footer> <p>This is the footer of the article.</p> </footer> </article> <section> <h1>This is a section</h1> <p>This is the content of the section.</p> </section> <aside> <p>This is an aside.</p> </aside>
<header>標簽用于定義頁面或者一個區域的頭部,<nav>標簽用于定義導航鏈接,<article>標簽用于定義文章,<section>標簽用于定義區域,<aside>標簽用于定義和頁面相關但是不屬于正文的內容。這些標簽的使用可以使頁面更加清晰和易于閱讀。
上一篇文字平均分配 css