时间:2023-10-05 00:30:01 | 来源:网站运营
时间:2023-10-05 00:30:01 来源:网站运营
html中form表单的使用方法和介绍:节数 | 知识点 | 要求 |
第一节 (form) | 表单概念 | 了解 |
Form | 掌握 | |
Get和post的区别 | 掌握 | |
第二节(表单元素) | 表单元素1 | 掌握 |
表单元素2 | 了解 | |
第三节(表单元素的属性) | 表单元素的属性 | 掌握 |
第四节(HTML5新增) | HTML5新增type类型 | 了解 |
第五节(HTML5新增) | HTML5新增属性 | 掌握 |
<form action="url" method=get|post name="myform" ></form> -name:表单提交时的名称 -action:提交到的地址 -method:提交方式,有get和post两种,默认为get |
<form action="url" method=get|post name="myform" ></form> -name:表单提交时的名称 -action:提交到的地址 -method:提交方式,有get和post两种,默认为get |
<form action="url" method=get|post name="myform" ></form> -name:表单提交时的名称 -action:提交到的地址 -method:提交方式,有get和post两种,默认为get |
<form action="url" method=get|post name="myform" ></form> -name:表单提交时的名称 -action:提交到的地址 -method:提交方式,有get和post两种,默认为get |
<form> First name: <input type="text" name="firstname"> <br>Last name: <input type="text" name="lastname"> </form> |
<form> First name: <input type="text" name="firstname"> <br>Last name: <input type="text" name="lastname"> </form> |
<form> First name: <input type="text" name="firstname"> <br>Last name: <input type="text" name="lastname"> </form> |
<form> First name: <input type="text" name="firstname"> <br>Last name: <input type="text" name="lastname"> </form> |
<form> First name: <input type="text" name="firstname"> <br>Last name: <input type="text" name="lastname"> </form> |
<form> Password: <input type="password" name="pwd"> </form> |
<form> Password: <input type="password" name="pwd"> </form> |
<form> Password: <input type="password" name="pwd"> </form> |
<form> <input type="radio" name="sex" value="male">Male <br> <input type="radio" name="sex" value="female">Female </form> |
<form> <input type="radio" name="sex" value="male">Male <br> <input type="radio" name="sex" value="female">Female </form> |
<form> <input type="radio" name="sex" value="male">Male <br> <input type="radio" name="sex" value="female">Female </form> |
<form> <input type="radio" name="sex" value="male">Male <br> <input type="radio" name="sex" value="female">Female </form> |
<form> <input type="radio" name="sex" value="male">Male <br> <input type="radio" name="sex" value="female">Female </form> |
<form> <input type="checkbox" name="vehicle" value="Bike">I have a bike<br><input type="checkbox" name="vehicle" value="Car">I have a car </form> |
<form> <input type="checkbox" name="vehicle" value="Bike">I have a bike<br><input type="checkbox" name="vehicle" value="Car">I have a car </form> |
<form> <input type="checkbox" name="vehicle" value="Bike">I have a bike<br><input type="checkbox" name="vehicle" value="Car">I have a car </form> |
<form> <input type="checkbox" name="vehicle" value="Bike">I have a bike<br><input type="checkbox" name="vehicle" value="Car">I have a car </form> |
<form> <input type="checkbox" name="vehicle" value="Bike">I have a bike<br><input type="checkbox" name="vehicle" value="Car">I have a car </form> |
选择一个文件: <input type="file" name="img"> |
<input type="hidden" name="country" value="Norway"> |
<form name="input" action="html_form_action.php" method="get"> Username: <input type="text" name="user"> <input type="submit" value="Submit"> </form> |
<form name="input" action="html_form_action.php" method="get"> Username: <input type="text" name="user"> <input type="submit" value="Submit"> </form> |
<form name="input" action="html_form_action.php" method="get"> Username: <input type="text" name="user"> <input type="submit" value="Submit"> </form> |
<form name="input" action="html_form_action.php" method="get"> Username: <input type="text" name="user"> <input type="submit" value="Submit"> </form> |
<input type="reset"> |
<input type="button" value="点我"/> |
<input type="image" src="img_submit.gif" /> |
<select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> |
<select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> |
<select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> |
<select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> |
<select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> |
<select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> |
<textarea rows="10" cols="30"> 我是一个文本框。 </textarea> |
<textarea rows="10" cols="30"> 我是一个文本框。 </textarea> |
<textarea rows="10" cols="30"> 我是一个文本框。 </textarea> |
E-mail: <input type="email" name="usremail"> |
添加你的主页: <input type="url" name="homepage"> |
Search Google: <input type="search" name="googlesearch"> |
电话号码: <input type="tel" name="usrtel"> |
选择你喜欢的颜色: <input type="color" name="favcolor"> |
数量 ( 1 到 5 之间): <input type="number" name="quantity" min="1" max="5"> |
<input type="range" name="points" min="1" max="10"> |
生日: <input type="date" name="bday"> |
生日 ( 月和年 ): <input type="month" name="bdaymonth"> |
选择周: <input type="week" name="week_year"> |
User name: <input type="text" name="user_name" autofocus /> |
Email: <input type="email" multiple /> |
<input type="search" name="user_search" placeholder="Search W3School" /> |
Name: <input type="text" name="usr_name" required /> |
关键词:方法,使用