HTML5 的新的表单属性
新的 form 属性:新的 input 属性:- autocomplete
- autofocus
- form
- form overrides (formaction, formenctype, formmethod, formnovalidate, formtarget)
- height 和 width
- list
- min, max 和 step
- multiple
- pattern (regexp)
- placeholder
- required
- <form action="demo_form.asp" method="get" autocomplete="on">
- First name: <input type="text" name="fname" /><br />
- Last name: <input type="text" name="lname" /><br />
- E-mail: <input type="email" name="email" autocomplete="off" /><br />
- <input type="submit" />
- </form>
复制代码
|
|