標籤:style blog http color io os ar for sp
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK"><title>Insert title here</title></head><body><form >賬戶 : <input type = "text" name ="user" size="10"><p>密碼 : <input type = "password" name ="password" size="10"><p>性別:<input type = "radio" name = "sex" value = "man" >男 <input type = "radio" name = "sex" value = "women">女<p> <!--通過name這個屬性標示是同一組按鈕,但value就表示值不同-->愛好: <input type = "checkbox" name = "aihao1" value = "ai">旅遊 <input type = "checkbox" name = "aihao2" value = "book">看書 <input type = "checkbox" name = "aihao3" value = "ty" >體育<p>你最喜歡的一句話 : <input type = "text" name = "mingyan" ><p> <input type = "submit" name = "submit" > <input type = "reset" name = "reset" ><p> <input type = "hidden" name = "hidden" value = "A"><p> hidden 隱藏欄位,使用者隱藏元素。把A傳過去但在頁面看不到 </form></body></html>
注意:type =""分號中間的類型不能帶空格。如 type ="chckbox " , chckbox後面連著兩個空格,這個會導致錯誤,可能會導致出現的是文字框
還有兩種類型沒有寫,因為不熟悉
image 圖片按鈕,可以指定圖片背景作為button face;
file 檔案選擇;
HTML中type的可用類型