標籤:個數 image gen 第三課 控制項 padding select 標籤 select 屬性
表格table 標籤
- border
- width
- height
- cellspacing 儲存格之間的間隙 預設2
- cellpadding 儲存格和儲存格內容之間的間隙 預設0
- align
- bgcolor
- background
tr標籤 表示一行
- align 行內文字的水平對齊 left/center/right
- valign 行內文字的垂直對齊 top/middle/bottom
- height 行高度
- bgcolor
td標籤 表示儲存格
- align
- valign
- width
- height
th標籤 表頭
屬性 同 td
thead標籤tbody標籤tfoot 標籤caption標籤 定義表格標題colgroup/col表單form標籤
- action
- method 值 get/post 預設get
- target
- enctype
input標籤 單
- name 屬性
- type 屬性
- text 預設 文字框
- password 密碼框
- radio 單選框
- checkbox 複選框
- file 檔案上傳
- submit 提交按鈕
- reset 重設按鈕
- button 普通按鈕
- image 把圖片作為提交按鈕樣子 不推薦
- hidden 隱藏欄位
- value屬性 預設值 type值不同vlaue的意義不一樣
- size 屬性 控制輸入框寬度 適用於 text/password
- maxlength 屬性 最大輸入字元個數 適用與text/password
- checked 屬性 預設選中 適用於 radio/checkbox
- readonly 唯讀 適用於text/password
- disabled 表示不可用
button元素
select 標籤
- name
- size
- multiple 設定多選
- disabed
option 標籤
- value
- disabled
- selected 預設選項
optgroup 對select下的option進行分組textarea 文本域
- name
- disabled
- rows 高度
- cols 寬度
- readonly
label
fieldset 表單的外框legend 標題
HTML第三課