html-基本form元素---ShinePans


<html>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<head><title>表单</title>
	<body>
		<form action="logOk.html" method="get">
			你最喜欢哪些城市:
			<input type="checkbox" name="cities" value="wuhan">武汉
			<input type="checkbox" name="cities" value="shanghai">上海
			<input type="checkbox" name="cities" value="beijing">北京
			<input type="checkbox" name="cities" value="guangzhou">广州
			<br/>
			你的性别是:      
			<input type="radio" name="sex" value="male">男
			<input type="radio" name="sex" value="female">女
			<br/>
			下拉列表<br/>
			请选择你的出生地:
			<select name="address" size=3 multiple>
				<option value="hubei">湖北<!--选项--></option>
				<option value="shanghai">上海</option>
				<option value="beijing">北京</option>
			</select>
			<br/>
			文本域(用来发表文章发帖子等等)<!--cols:占用的列数,rows占用的行数-->
			</br>
			介绍自己:
			<br/>
			<textarea name="mytextarea" cols="60" rows="10">   
			</textarea><br/>
			<br/>
			上传文件:
			<input type="file" name="myfile">
			<br/>

			<br/>
			<br/>
			隐藏域的使用
			<input type="hidden" name="data" value="ok">
			<input type="submit" value="測试"/>
			<br/>
			button的測试:
			<br/>
			<input type="image" src="image.jpg">
		</form>
	</body>
</html>


posted @ 2017-07-14 19:55  wzzkaifa  阅读(146)  评论(0编辑  收藏  举报