填寫並提交表單,然後重新重新整理頁面檢視如何自動填充內容。
注意 form 的 autocomplete 屬性為 "on"(開),但是e-mail 自動為"off"(關).
提示:某些瀏覽器中,您可能需要啟用自動完成功能,以使該屬性生效。
注意:在 safari 和 internet explorer 9 及之前的版本中不支援 novalidate 屬性。
autofocus屬性
autofocus 屬性是乙個 boolean 屬性.
autofocus 屬性規定在頁面載入時,域自動地獲得焦點。
注意:在 safari 和 internet explorer 9 及之前的版本中不支援 autofocus 屬性。
form屬性form 屬性規定輸入域所屬的乙個或多個表單。
提示:如需引用乙個以上的表單,請使用空格分隔的列表。
"last name" 字段沒有在 form 表單之內,但它也是 form 表單的一部分。
last name:注意:ie 不支援 form 屬性
formaction 屬性the formaction 屬性用於描述表單提交的url位址.
the formaction 屬性會覆蓋"last name" 字段沒有在 form 表單之內,但它也是 form 表單的一部分。
last name:注意:internet explorer 9及更早 ie 版本不支援 input 標籤的 formaction 屬性。
formenctype 屬性
formenctype 屬性描述了表單提交到伺服器的資料編碼 (只對form表單中 method="post" 表單)
formenctype 屬性覆蓋 form 元素的 enctype 屬性。
注意: 該屬性與 type="submit" 和 type="image" 配合使用。
"last name" 字段沒有在 form 表單之內,但它也是 form 表單的一部分。
last name:注意:internet explorer 9及更早 ie 版本不支援 input 標籤的 formaction 屬性。
formmethod 屬性formmethod 屬性定義了表單提交的方式。
formmethod 屬性覆蓋了"last name" 字段沒有在 form 表單之內,但它也是 form 表單的一部分。
last name:注意:internet explorer 9及更早 ie 版本不支援 input 標籤的 formmethod 屬性。
novalidate 屬性是乙個 boolean 屬性.
novalidate屬性描述了 元素在表單提交時無需被驗證。
formnovalidate 屬性會覆蓋注意:internet explorer 9及更早 ie 版本不支援 input 標籤的 formnovalidate 屬性。
formtarget 屬性指定乙個名稱或乙個關鍵字來指明表單提交資料接收後的展示。
the formtarget 屬性覆蓋注意:internet explorer 9及更早 ie 版本不支援 input 標籤的 formtarget 屬性。
height 和 width 屬性規定用於 image 型別的 標籤的影象高度和寬度。
注意:height 和 width 屬性只適用於 image 型別的標籤。
list 屬性規定輸入域的 datalist。datalist 是輸入域的選項列表。
在 中預定義 值:
min、max 和 step 屬性用於為包含數字或日期的 input 型別規定限定(約束)。
注意:
min、max 和 step 屬性適用於以下型別的 標籤:date pickers、number 以及 range。
元素最小值與最大值設定:
enter a date before 1980-01-01:
enter a date after 2000-01-01:
quantity (between 1 and 5):
multiple 屬性是乙個 boolean 屬性.
multiple 屬性規定元素中可選擇多個值。
注意:multiple 屬性適用於以下型別的 標籤:email 和 file:
上傳多個檔案:
select images:
pattern 屬性描述了乙個正規表示式用於驗證 元素的值。
注意:pattern 屬性適用於以下型別的 標籤: text, search, url, tel, email, 和 password.
country code:
placeholder 屬性提供一種提示(hint),描述輸入域所期待的值。
簡短的提示在使用者輸入值前會顯示在輸入域上。
注意:placeholder 屬性適用於以下型別的 標籤:text, search, url, telephone, email 以及 password。
input 字段提示文字t:
required 屬性是乙個 boolean 屬性.
required 屬性規定必須在提交之前填寫輸入域(不能為空)。
注意:required 屬性適用於以下型別的 標籤:text, search, url, telephone, email, password, date pickers, number, checkbox, radio 以及 file。
不能為空的input欄位:
username:
step 屬性
step 屬性為輸入域規定合法的數字間隔。
如果 step="3",則合法的數是 -3,0,3,6 等
注意: step 屬性與以下type型別一起使用: number, range, date, datetime, datetime-local, month, time 和 week.
規定input step步長為3:
參考:
HTML5表單屬性
1.6.input的formenctype屬性 用於表單提交到伺服器的資料編碼 只對form表單中method post 表單 該屬性會覆蓋form元素的enctype屬性。7 input formmethod屬性,定義了表單的提交方式,覆蓋了form元素的method屬性 8 input form...
Html5 表單屬性
熟悉掌握 html5 的若干新的表單屬性 新的 form 屬性 autocomplete novalidate 新的 input 屬性 autocomplete autofocus form form overrides formaction,formenctype,formmethod,formn...
HTML5 表單屬性
1.form屬性 此處通過form屬性即使在外邊也能在提交的時候使用,完全脫離form 2.placeholder屬性 3.autofocus屬性 autofocus屬性的作用是指定控制項自動獲得焦點。需要注意的是,乙個html頁面上只能有乙個控制項具有該屬性 4.list屬性和datalist元素...