<html>
<head>
<title>这是一个表格</title>
<meta charset="utf-8">
</head>
<body>
<form>
账号:<input type="text" name="name" value="请输入用户名" size="10" maxlength="10">
<br>
<br>
密码:<input type="password" name="mima" value="请输入密码" size="10" maxlength="10">
<br>
<br>
<input type="radio" name="sex" checked>男
<input type="radio" name="sex" >女
<br>
<br>
<input type="checkbox" name="changge">唱歌
<input type="checkbox" name="tiyu">体育
<input type="checkbox" name="tiaowu">跳舞
<br>
<br>
<input type="hidden" name="yincangwenzi" value="隐藏文件">
<br>
<br>
自我介绍:
<br>
<textarea cols="35" rows="5">
</textarea>
<br>
<br>
<select name="dizhi">
<option value="beijing">北京</option>
<option value="shanghai">上海</option>
<option value="guangzhou">广州</option>
</select>
<input type="submit" value="提交">
<input type="reset" value="重置">
<input type="button" value="按钮">
<br>
<br>
</form>
</body>
</html>
name对应的是value
<form method="post"></form>
method参数可以设定为post或者get,默认为get