標籤:lap 提交 提示 交換 eth blocks ica view ima
- <ul><li> 列表,每個<li>預設格式最前帶一個圓點
- <ol><li>有順序的資訊列表,預設帶1,2,3
- <div>相當於一個容器,用於劃分邏輯和獨立的版塊等。如<div id="財經新聞">
- <table>表格。<caption>表題,<tbody>,<tr>一行,<th>表頭,<td>資料;summary屬性,表格摘要
<table> <tbody> <tr> <th>班級</th> <th>平均分</th> </tr> <tr> <td>一班</td>> <td>70</td> </tr> <tr> <td>二班</td>> <td>71</td> </tr> </tbody></table>
View Code
效果:
-
- <a>超連結。<a href="網址" tiltle="懸停文字">顯示文字</a> target屬性=“_blank”表示在新瀏覽器視窗開啟;
- <a>中href=“mailto”時表電子郵件。<a href="mailto:[email protected][email protected]&subject=郵件主題&body=郵件內容">發送</a>第一個分隔用?,後面的都用&
- <img src="圖片連結" alt="下載失敗時的替換文本" title="懸停文字">圖片可以是GIF,PNG,JPEG格式
- <form>用於和服務端進行資料交換。<form method="傳送方式(get/post等等)" action=“伺服器檔案(home.html等)”>表單裡有各種控制項
- 表單控制項:<input type="text/password/radio/checkbox" name="表單名稱" value=“用於提示的預設值,radio和checkbox是用於提交的伺服器的值”>
- checkbox(多選)和radio(單選)中checked屬性為“checked”時該項被選中
- 同一組的checkbox或radio注意名字要一樣
- <input type="radio" name="radioexample" value="喜歡" checked="checked"/>
- <input type="radio" name="radioexample" value="不喜歡" checked="checked"/>
- 表單控制項:<textarea>多行文本輸入。cols(列),rows(行)屬性,可用css中的height和width來代替
- ……
HTML標籤基礎二