用javascript编写网页:1.1HTML实践:制作调查问卷

<!DOCTYPE html>
<html>
<head>
<title>表单</title>
</head>

<body>
<form>
	姓名:<input type="text" value="pcl" name="userName"/><br>
	密码:<input type="password" value="123456" name="pwd"/><br>
</form>
<br>
<form>
	<input type="radio" value="male" name="sex" checked/><input type="radio" value="male" name="sex"/><br>
</form>
<br>
<form>
	<input type="checkbox" value="playguita" name="specialty" checked/>弹吉他
	<input type="checkbox" value="唱歌" name="singing" checked/>唱歌
	<input type="checkbox" value="弹吉他" name="playing" checked/>弹吉他
	<input type="checkbox" value="十项全能" name="all" checked/>十项全能
</form>
<br>
<form action="" enctype="multipart/form-data">
帅照:<input type="file" name="fileName"/>
</form>

<br>
地区:
<select name="cities" size="2" multiple>
<option value="sichuan" selected/>四川
<option value="guangdong" />广东
<option value="guangxi" />广西
<option value="上海"/>上海
</select>
<br>
<br>
更多描述:<textarea name="更多描述:" cols="100" rows="10"></textarea>
<br>
<br>
<form>
<input type="submit" value="提交"/>
<input type="reset" value="重置" />
<input type="button" value="关闭" />
</form>


</body>
</html>

运行截图:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/a123456789qqo/article/details/108939935