HTML中type的可用類型

來源:互聯網
上載者:User

標籤: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的可用類型

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.