HTML5新元素--header與footer


<header>標簽定義文檔或者文檔的一部分區域的頁眉。

<header> 元素應該作為介紹內容或者導航鏈接欄的容器。在一個文檔中,可以定義多個 <header> 元素。

注釋:<header> 標簽不能被放在 <footer>、<address> 或者另一個 <header> 元素內部。

<footer> 標簽定義文檔或者文檔的一部分區域的頁腳。

<footer> 元素應該包含它所包含的元素的信息。

在典型情況下,該元素會包含文檔創作者的姓名、文檔的版權信息、使用條款的鏈接、聯系信息等等。

在一個文檔中,您可以定義多個 <footer> 元素。

<article>
  <header>
    <h1>Internet Explorer 9</h1>
    <p><time pubdate datetime="2011-03-15"></time></p>
  </header>
  <p>Windows Internet Explorer 9 (abbreviated as IE9) was released to
  the  public on March 14, 2011 at 21:00 PDT.....</p>
</article>

<footer>
  <p>Posted by: Hege Refsnes</p>
  <p><time pubdate datetime="2012-03-01"></time></p>
</footer>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM