html5與css3學習實踐--基礎的內容劃分標籤

來源:互聯網
上載者:User

標籤:http   io   ar   使用   sp   strong   div   on   art   

從位置上劃分出網頁的地區以後,就需要用到網頁的內容標籤了,比如<article><aside><nav><p><h1>等。網頁中,這些內容標籤和位置標籤交錯在一起,比如像下面這樣:

Html代碼  
  1. <body>  
  2.    <header>  
  3.        <h1>Body Title</h1>  
  4.        <nav>  
  5.            導覽列  
  6.        </nav>  
  7.    </header>  
  8.    <section id="left">  
  9.        <header>  
  10.            地區頭  
  11.        </header>  
  12.        <article>  
  13.            <header>  
  14.                文章頭  
  15.            </header>  
  16.            <p>段落一</p>  
  17.            <p>段落二</p>  
  18.            <aside>  
  19.                側邊欄  
  20.            </aside>  
  21.            <footer>  
  22.                文章尾  
  23.            </footer>  
  24.        </article>  
  25.        <footer>  
  26.            地區尾  
  27.        </footer>  
  28.    </section>  
  29.    <section id="right">  
  30.        <header>  
  31.            地區頭  
  32.        </header>  
  33.        <nav>  
  34.            右側導覽列  
  35.        </nav>  
  36.    </section>  
  37.    <footer>  
  38.        <p>Copy Right.</p>  
  39.    </footer>  
  40. </body>  

 其中,

<article>:代表一篇獨立的本文內容,一般還會按照位置標籤劃分出頭、尾、地區等;

<aside>:指與段落內容、本文內容相關的側邊欄,一般在<article>中使用;

<nav>:指導航內容;

<p>:指獨立的段落,一般在<article>中使用;

<h1>:指標題,一般在<header>中使用。

這些內容標籤中,可以加入位置標籤來進列區域劃分。

還有很多其他的表示內容類型的標籤,後面的學習實踐中再描述。

html5與css3學習實踐--基礎的內容劃分標籤

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.