標籤: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