HTML5與css3權威指南(一)

來源:互聯網
上載者:User

標籤:time   類型   html5   功能   dialog   針對   log   res   換行   

doctype聲明:

<!DOCTYPE html>

字元編碼:

<meta charset="utf-8">

 不允許寫結束標記:area,base,br.col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr

可以省略結束標記:li,dt,dd,p,rt,rp,optgroup,option,colgroup,thead,tbody,tfoot,tr,td,th

<!DOCTYPE html><meta charset="utf-8"><title>ger</title><p>HTML5<br/>文法

 

新增結構元素:

<section></section>  //頁面中大的內容區塊<article></article>    //文章<aside></aside>       //與article內容相關輔助資訊<header></header>  //標題<footer></footer>    //頁尾<nav></nav>           //導航<figure></figure>      //常與figcaption搭配使用<main></main>         //網頁中主要內容
<video src=""></video>         //視頻<audio src=""></audio>         //音頻<embed src=""/>                  //多媒體<mark></mark>                    //高亮<progress></progress>          //表示運行中的進程<meter></meter>                 //度量衡<time></time><ruby></ruby>                     //注釋<wbr>                                 //軟換行(字元型語言)<canvas></canvas><command onclick="cut()" label="cut"><details></details>                //點擊標題擷取細節<datalist></datalist>               //可選資料的列表,與input搭配<datagrid></datagrid>            //可選資料列表,樹形<keygen>                              //產生密鑰<output></output>                //不同類型輸出<menu></menu><dialog></dialog>                  //對話方塊

全域屬性

contentEditable=true|false     //屬性值為true時可由使用者編輯designMode=on|off                //屬性為on時contentEditable功能可實現,該屬性只能用js實現hidden=true|false                 //是否隱藏spellcheck=true|false            //針對input和text area拼字和語法檢查

 

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.