無序列表
<ul>
<li>上海</li>
<li>成都</li>
</ul>
有序列表
<ol>
<li>上海</li>
<li>成都</li>
</ol>
自定義列表
創建表格表單
<table> ? ? ? ? ? ? ? ? ? //table表示一個表格,<tr></tr>表示表單
<theah>
<tr><th>A</th><th>B<.th></tr> ? ? ? ? //頭部標簽,列名在一行顯示
</thead>
<tr>
<td>a</td><td>b</td> ? ? ? ? ?//可使用ctrl+{ or ctrl+}左右對齊
</tr> ? ? ? ? ? ? ? ? ? ? ? ?//在同一行顯示,不同的表格
</table>
單元格合并
rowspan ? ? ? ? ? ? ? //一個單元格占兩行內容顯示
colsapan ? ? ? ? ? ? ? //一個單元格占兩列顯示
div ? ? ? ? ? ? ? ? ?//一個div占整個通欄
span ? ? ? ? ? ? ? ? //如果沒有換行標簽,則會在一個行顯示 ? ?
表單
<form > ? ? ? ? ? ? ? ? ? ? ? ? //表單里的東西都需要放在form里面
用戶名:<input type="text"> ? ? ? ?//type指類型 text文本框 value指值
sex:男<input type="radio" name="gender" checked=“checked” >女<input type="radio" name="gender">//radio表示單項選擇,gender只可選擇一個,checked則表示默認是男
? ? ? ? ? ? ? ? ? ? ? //text=password表示文檔加密
<select> ? ? ? ? ? ? ? ?//select可選擇的下拉列表
<option><option>
</select> ?
<textarea></textarea> ? ? ? ? ? //文本域
</form>
lable標簽的使用
//使用方法 ? 1、id.....for ?2、<lable>文字內容</lable>
sublime
提交按鈕,前面有空白,先寫個<td></td>
普通按鈕 ? ?<input type="buton" value="普通按鈕">
重置按鈕 ? ?<input type="reset" ? value="重置按鈕">
pre ? ? ? ? 標簽不對空格進行合并
</> ? ? ?表示小于/大于號的意思
<thtml5> ? <=> ? <html5>
HTML語義化
是網頁代碼更加清晰,明了