HTML所有元素的分類

來源:互聯網
上載者:User

標籤:script   state   block   logs   ges   -o   html元素   nbsp   attribute   

根據HTML5.1推薦標準,HTML元素主要分為7大類:

  • metadata content(原資料的內容)
  • flow content(流資料的內容)
  • sectioning content(分節的內容)
  • sectioning content(標題的內容)
  • phrasing content(短語的內容)
  • embedded content(嵌入的內容)
  • interactive content(互動內容)

 

  1. metadata content(原資料的內容)
    原資料的內容是設定其餘內容的表現或行為的內容、或者是建立文檔與其他文檔關係的內容、或者是傳達文檔之外資訊的內容。
    • base 
    • link 
    • meta 
    • noscript 
    • script 
    • style 
    • template 
    • title
  2. flow content (流資料的內容)
    流資料的內容是應用於文檔或者應用程式的主體的大多數元素。
    • a 
    • abbr 
    • address 
    • area (if it is a descendant of a map element) 
    • article 
    • aside 
    • audio 
    • b 
    • bdi 
    • bdo 
    • blockquote 
    • br 
    • button 
    • canvas 
    • cite 
    • code 
    • data 
    • datalist 
    • del 
    • details 
    • dfn 
    • div 
    • dl 
    • em 
    • embed 
    • fieldset 
    • figure 
    • footer 
    • form 
    • h1 
    • h2 
    • h3 
    • h4 
    • h5 
    • h6 
    • header 
    • hr 
    • i 
    • iframe 
    • img 
    • input 
    • ins 
    • kbd 
    • keygen 
    • label 
    • main 
    • map 
    • mark 
    • math 
    • menu 
    • meter 
    • nav 
    • noscript 
    • object 
    • ol 
    • output 
    • p 
    • picture 
    • pre 
    • progress 
    • q 
    • ruby 
    • s 
    • samp 
    • script 
    • section 
    • select 
    • small 
    • span 
    • strong 
    • sub 
    • sup 
    • svg 
    • table 
    • template 
    • textarea 
    • time 
    • u 
    • ul 
    • var 
    • video 
    • wbr 
    • text
  3. sectioning content(分節的內容)
    分節的內容是定義標題和頁尾範圍的內容
    • article 
    • aside 
    • nav 
    • section
  4. heading content(標題的內容)
    標題的內容是定義文檔某一節的標題
    • h1 
    • h2 
    • h3 
    • h4 
    • h5 
    • h6
  5. phrasing content(短語的內容)
    短語的內容是文檔的文本以及在段落層次上標記該文本的元素
    • a 
    • abbr 
    • area (if it is a descendant of a map element) 
    • audio 
    • b 
    • bdi 
    • bdo 
    • br 
    • button 
    • canvas 
    • cite 
    • code 
    • data 
    • datalist 
    • del 
    • dfn 
    • em 
    • embed 
    • i 
    • iframe 
    • img 
    • input 
    • ins 
    • kbd 
    • keygen 
    • label 
    • map 
    • mark 
    • math 
    • meter 
    • noscript 
    • object 
    • output 
    • picture 
    • progress 
    • q 
    • ruby 
    • s 
    • samp 
    • script 
    • select 
    • small 
    • span 
    • strong 
    • sub 
    • sup 
    • svg 
    • template 
    • textarea 
    • time 
    • u 
    • var 
    • video 
    • wbr 
    • text
  6. embedded content(嵌入的內容)
    嵌入的內容是將另一種資源匯入文件的內容,或從另一個資源中插入到文檔中的內容。
    • audio 
    • canvas 
    • embed 
    • iframe 
    • img 
    • math 
    • object 
    • picture 
    • svg 
    • video
  7. interactive content(互動式內容)
    互動式內容是專門用於使用者互動的內容。
    • a (if the href attribute is present) 
    • audio (if the controls attribute is present) 
    • button 
    • details 
    • embed 
    • iframe 
    • img (if the usemap attribute is present) 
    • input (if the type attribute isnot in the hidden state) 
    • keygen 
    • label 
    • select 
    • textarea 
    • video (if the controls attribute is present)

7大類的關係圖:

 

 

 查看原文

HTML所有元素的分類

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.