欢迎光临散文网 会员登陆 & 注册

下拉列表和文本域的代码

2020-04-29 10:57 作者:小垃圾kiki  | 我要投稿
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action='#'  method='get'>
<label for='username'>用户名:</lable><input  name='username'  placeholder='请输入用户名' id='username'><br>
<label for='password'>密码:</lable><input  type='password'  name='password'  placeholder='请输入密码' id='password'><br>
性别:男<input  type='radio'  name='gender' value='male' checked='checked'>女<input  type='radio'  name='gender' value='female'><br>
<br>
爱好:<input  type='checkbox'  name='hobby' value='shopping' checked='checked'>逛街<input  type='checkbox'  name='hobby' value='eat'>吃饭
<input  type='checkbox'  name='span'  checked='checked'>桑拿
<br>
图片:<input type='file'  name='file'><br>
隐藏域:<input type='hidden' name='id'  value='aaa'><br>
取色器:<input type='color'  name='color'><br>
生日:<input type='data' name='birthday'><br>
生日:<input type='datatime-local' name='birthday'><br>
邮箱:<input type='email' name='emali'><br>
年龄:<input type='number' name='age'><br>
省份:<select name='provice'>
        <option  value=''>---请选择---</option>
        <option  value='1'>北京</option>
        <option  value='2'>上海</option>
        <option  value='3' selected>广州</option>
    </select><br>
自我描述:<textarea row='5' col='20' name='des'>
            
        </textarea><br>

<input type='submit' value='登录'>
<input type='button' value='一个按钮'><br>
<input type='image' src='image/2.png' value='图片按钮'><br>

</form>
</body>
</html>

下拉列表和文本域的代码的评论 (共 条)

分享到微博请遵守国家法律