时间: 2020-09-9|33次围观|0 条评论

<form>
姓:
<input type="text" name="firstname" />
<br />
名:
<input type="text" name="lastname"/>
<br />
密码:
<input type="password" name="passwprd" />
男性:
<input type="radio" checked="checked" name="sex" value="male" />
女性:
<input type="radio" name="sex" value="female" />
<ul>
我喜欢自行车:
<input  type="radio" name="bike"/>
<br />
我喜欢汽车:
<input  type="radio" name="car"/>
</ul>
<select name="cars">
<option value="volvo" selected="selected" >volvo</option>
<option value="saab">saab</option>
<option value="fiat">fiat</option>
<option value= "audi">audi</option>
</select>

<fieldset>
<legend>健康信息</legend>
身高:<input type="text" />
体重:<input type="text" />
</fieldset>
<br />
<br />
<textarea rows="3" cols="30">
The cat was playing in the garden
</textarea>
<br />
<br />
<input type="button" value="hello world!" />
<br />
<br />
<input type="text" name="firstname" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>
<input type="submit" value="Submit">
<br />
<br />
I have a bike:
<input type="checkbox" name="vehicle" value="bike" checked="checked" />
<br />
I have a car:
<input type="checkbox" name="vehicle" value="car" />
I have an airplane:
<input type="checkbox" name="vehicle" value="airplane" />
<br />
<br />
<input type="submit" value="submit" />
<br />
<input type="submit" value="发送" />
<input type="reset" value="重置" />
</form><br />
<br />
<br />

 

 

form 练习插图

 

文章转载于:https://www.cnblogs.com/shenzikun1314/p/6197493.html

原著是一个有趣的人,若有侵权,请通知删除

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《form 练习
   

还没有人抢沙发呢~