1.input標簽:<input> 標簽用于搜集用戶信息。根據不同的 type 屬性值,輸入字段擁有很多種形式。
輸入字段可以是文本字段、復選框、掩碼后的文本控件、單選按鈕、按鈕等等。
例如:Frist name:<input type="text" name="fname">
2.在html中<input>標簽沒有結束標簽
在XHTML中<input>標簽必須被正確地關閉
3.雙標注(shift+?)
4.form表單,提交數據(交互)
5.協議多選,和單選屬于input,type=類型
6.按鈕:(1)input type=submit是自帶提交功能的(2)input type=button不自帶
(3)button標簽(屬于H5里面的)
7.自動聚焦:autofocus <input type="text" autofocus="autofocuas">
8.屬性通指名和值
9.readonly,disable.placeholder,作用基本相同
10.text area指文本域
11.name指名稱可以相同,ID名稱不能相同具有唯一性,class名稱也可以相同指一類,name跟后臺交互時
使用,class用于html,css前臺頁面部分
12.documentgetElementById用于js部
13.默認選擇:checked="checked"
14.methool提交方式有get,post,get會在地址欄內顯示用戶信息,安全度低,但速度快,post不會顯示
用戶信息,安全度高,但速度略慢
15.label元素(for屬性="相關ID的標記")
轉載于:https://www.cnblogs.com/Rainbowxu/p/5840361.html