form 练习

<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 />

原文地址:https://www.cnblogs.com/shenzikun1314/p/6197493.html