html-表单

<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>input-type</title>
</head>
<!--input的type属性为:text,password,radio,checkbox,submit,reset,button,image,file
   其他表单: select,textarea-->
<body>
<form name="input" action="http://www.cnblogs.com/gmj-java/" method="post">
用户:<input type="text" name="user" size="30"></br>
密码:<input type="password" name="password"><br />

<input type="radio" name="sex" value="boy" checked>男
<input type="radio" name="sex" value="gilr">女<br />

<input type="checkbox" name="hobby" value="sing">唱歌
<input type="checkbox" name="hobby" value="read" checked>看书
<input type="checkbox" name="hobby" value="badminton">羽毛球<br />

<input type="submit" value="submit"><br/>

<select name="car">下拉列表
<option name="0" selected>--请选择--</option>
<option name="aodi">奥迪</option>
<option name="benchi" >奔驰</option>
<option name="baoma">宝马</option>
</select><br /><br />

<textarea rows="10" cols="20">
这里是文本域
</textarea>
</form>

</body>

</html>

posted @ 2016-11-03 16:26  高明举  阅读(136)  评论(0)    收藏  举报