<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<form action="https://www.baidu.com"
method="get">
<fieldset>
<legend>用户信息</legend>
账号:<input type="text" name="username"
placeholder="请填写账号"
value="张三"
maxlength="6"
minlength="3"
autofocus
readonly
disabled
/>
<br /><br />
密码:<input type="password" name="pwd"
placeholder="请填写密码"
/>
<br /><br />
性别:
<label for="m">男</label>
<input type="radio" name="gender"
value="M" checked
id="m"/>
<label for="f">女</label>
<input type="radio" name="gender"
value="F" id="f"/>
<label for="s">其他</label>
<input type="radio" name="gender"
value="S" id="s"/>
<br /><br />
爱好:
抽烟<input type="checkbox" checked
name="hobby" value="cy"/>
喝酒<input type="checkbox"
name="hobby" value="hj"/>
烫头<input type="checkbox" checked
name="hobby" value="cy"/>
赌博<input type="checkbox"
name="hobby" value="db" />
纹身<input type="checkbox" checked
name="hobby" value="ws"/>
<br /><br />
籍贯:
<select name="province" multiple size="6">
<option value="shannxi">陕西</option>
<option value="shanxi">山西</option>
<option value="guangdong" selected>广东</option>
<option value="hubei">湖北</option>
<option value="henan">河南</option>
<option value="caoxian" selected>曹县</option>
</select>
<br /><br />
自我介绍:
<textarea name="describe"
cols="10"
rows="10">
</textarea>
<br /><br />
颜色:
<input type="color" name="color" />
<br /><br />
时间日期:
<br />
日期: <input type="date" name="date"/>
<br />
时间: <input type="time" name="time" />
<br />
日期时间:
<input type="datetime-local" name="dateTime" />
<br />
月份:
<input type="month" name="month" />
<br />
星期:
<input type="week" name="week"/>
<br /><br />
年龄:
<input type="number" name="age"
min="18" max="60"
step="2"/>
<br />
进度:
<input type="range" name="range"
min="30" max="50"
step="5"/>
<br />
邮箱:
<input type="email" name="email"/>
<br />
网址:
<input type="url" name="url" />
<br />
电话:
<input type="tel" name="tel" />
<br />
查找:
<input type="search" name="search"/>
<br />
图像:
<input type="image" src="img/5.gif" name="image"/>
<br />
文件上传:
<input type="file" name="file" />
<br />
隐藏域:
<input type="hidden" name="id" />
<br /><br />
<input type="submit" value="注册"/>
<input type="reset" value="重新填写"/>
<input type="button" value="普通按钮"/>
<button>提交按钮</button>
</fieldset>
</form>
</body>
</html>
Java小白从入门到入土Day04
最新推荐文章于 2024-09-25 10:59:43 发布