练习题目
代码:
<html>
<head>
<title>标记元素练习</title>
</head>
<body>
<h1 align="center">小调查</h1><br/>
<h2>请选中你最喜欢的运动</h2><br/>
<input type="checkbox" name="ball">篮球</input><br/>
<input type="checkbox" name="ball">足球</input><br/>
<input type="checkbox" name="ball">手球</input><br/>
<h2>请选中你最喜欢的书</h2><br/>
<input type="checkbox" name="book">武侠</input><br/>
<input type="checkbox" name="book">言情</input><br/>
<input type="checkbox" name="book">探险</input><br/>
<h2>请选中你的性别</h2><br/>
<input type="radio" name="sex">男</input></br>
<input type="radio" name="sex">女</input></br>
<input type="radio" name="sex">中</input></br>
<h2>图片</h2>
<input type="image" src="6.png" alt="submit"><br/>
<input type="image" src="nv.jpg"alt="reset"><br/>
<h2>下拉列表</h2>
请选择你喜欢的城市<select >
<option>--请选择--</option>
<option>烟台</option>
<option>青岛</option>
<option>济南</option>
</select>
<h2>文本域</h2><br/>
<textarea rows=20 cows=30>
</textarea>
<h2>文件控件</h2>
<input type="file">请选择你喜欢的文件</input><br/>
<input type="submit" value="确定"/>
<h2 align="right">我是中国人</h2>
</body>
</html>