HTML5 Basic Concepts

來源:互聯網
上載者:User

標籤:style   blog   color   io   ar   sp   div   2014   art   

1. 關於編程習慣。 在查看網頁原始碼時(推薦firefox配置的firebug),良好的編程習慣可以讓我們對代碼結構有一個更好的瞭解,在讀懂別人的代碼或者debug的時候更能找到問題所在。

<!DOCTYPE html><html> //sheng<head><meta charset = "UTF-8"><title>HelloWorld!</title><script>...</script>...</head><body>...</body><html>

2.basic expressions

#contentEditable:全域屬性,允許使用者編輯元素裡面的內容

<textarea contentEditable=true></contentEditable>

 #spellcheck:針對type=text和textarea這兩個文本輸入框的一個新屬性,對常值內容進行拼字和語法檢查

<textarea spellcheck=true></contentEditable>

 #article:頁面中獨立於其它元素存在的內容,比如報紙中的一篇文章,一篇論壇文章等等,可以用header表示標題,footer表示腳註,section表示分段

<body><article>    <header>        <h1>宮崎駿</h1>        <p>發表日期            <time pubdate datetime="09/10/2014">09/10/2014</time>        </p>            </header>    <p>我最喜歡的漫畫家</p></p>    <section>        <h3>Top1</h3>        <p>天空之城</p>    </section>    <section>        <h3>Top2</h3>        <p>千與千尋</p>    </section></article></body>

#nav:頁面導航,可連結

<body><h1>宮崎駿</h1><nav><ul><li><a href="#">天空之城</a></li><li><a href="#">千與千尋</a></li></ul></nav></body>

 

HTML5 Basic Concepts

聯繫我們

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