標籤:
一:
1.HTML樣式
<style>定義樣式定義。
<div>定義文檔中的節或地區(塊級)。
例: <div style="border: 5px solid red;height: 50px"></div>
釋義;邊框寬度為5像素紅色邊框,高度50像素
<span>定義文檔中的行內的小塊或地區
圖片的跳轉
<img src="../images/xxx" alt="xxx"(一般不超過2層檔案夾)
錨點(回到頂部,指向錨點)
例:<a href=""name="first">有馬公生</a>
<a href="#first">男主角</a>
<hr>分割線
<pre></pre>預格式文本
src-UR路徑
2.內聯架構
例; <iframe src="" frameborder="1" name="qaq" width="600px" height="260px"></iframe>
<a href="firstone.html" target="qaq">niceboy</a>
釋義;點擊niceboy在顯示的頁面框內顯示first.html檔案內容
缺點:重新整理重新載入
3.表格
例:<table border="1" align="center" cellpadding="20px" cellspacing="20px">
釋義:顯示邊框表格對齊的表格,內邊距外邊距都為20像素
<th>表頭<tr>行<td>
<thead>頁首<tbody>主體<tfoot>頁尾
例:<table border="1">
<tr>
<th>Heading</th>
<th>Another Heading</th>
</tr>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
顯示為無邊框
Heading Another Heading
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2
4:列表
ul-li 無序列表
ol-li 有序列表
dl-dt=dd 自訂欄表
二:
重要單詞釋義
align=xx表格專用
padding 內邊距
spacing 空白
caption 標題
<tr>table row 行
<td>table data 資料(儲存格0
1.表單
input type="submit"→內建提交功能
input type="button"→不帶提交功能+value="文本"
<butten></button>→標籤(HTML5)
2.input: HTML5:
text文本 file檔案
password密碼 date日期
button按鈕 datetime時間
submit帶提交的按鈕 email郵件
reset重設 number數字
radio單選 search搜尋
checkbox多選
image圖片 month月
color顏色 time時間
hidden隱藏 week周
3.HTML5新屬性
autofocus自動聚焦
readonly
>唯讀(區別:有無底紋)
disabled
placeholder底層陰影字元
4.關於name,id,class的使用區別
-------------------------------------------------------------
名稱 使用
name 姓名 相同 後台互動
id # 唯一性 JS部分
class 類 相同 HTML,CSS的前端頁面
-------------------------------------------------------------
例:<input type="rideo" name:"sex"checked>男
<input type="rideo" name:"sex">女
釋義:單項選擇,預設選中男
5.下拉式功能表
<select name "**"id"**"(size多項顯示ORmultiple多項選擇>
<option value="**"selected>**</option>
6.fieldset+(input)
legend標記
-----------------------------------------------
例:<fieldset>
<legend>**</legend>
<input***>
-----------------------------------------------
form action表單處理的地址
method="get\past"提交方式
"get"地址欄顯示使用者資訊-完全性低-快(不加密)用於查詢不修改伺服器的資訊
<form action="#" method=<
"past"不會顯示使用者資訊-完全性高-慢(加密)
HTML標籤的應用(新手)