<!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
转载于:https://www.cnblogs.com/wangchuanqi/p/5299833.html
转载请注明原文地址: https://mac.8miu.com/read-15960.html