html--表单

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>表单</title>
</head>

<body>
<form>
<label>账号:</label><input type="text" value="123" /><br /><!--文本框-->

密码:<input type="password" /><br /><!--密码框-->

备注:<textarea cols="35" rows="5"></textarea><br /><!--文本域-->

<input type="submit" value="提交" /><br /><!--提交按钮,点击后转到form内的提交服务器的地址 -->

<input type="reset" value="重置" /><br /><!--重置按钮-->

<input type="button" value="登陆" /><br /><!--普通按钮-->

<input type="image" src="n0.jpg" width="50" /><br /><!--图片按钮-->

<input type="radio" name="sex"  /><br /><!--单选按钮组 name的值用来分组 -->
<input type="radio" name="sex"  /><br />

<!--复选框组 checked设置默认选项。格式:checked="checked" disabled使按钮失效-->
<input type="checkbox" checked="checked" disabled="disabled" />可乐<br />
<input type="checkbox" />百事可乐<br />
<input type="checkbox" />崂山可乐<br />

<input type="file" /><br /><!--文件上传-->

<!--下拉列表框 size的值是显示在网页上的个数-->
<select size="1">
<option value="">汉堡</option>
<option>鸡米花</option>
<option selected="selected">鸡腿</option>
</select>

</form>

</body>
</html>
View Code

posted @ 2016-03-20 21:56  1011042043  阅读(161)  评论(0编辑  收藏  举报