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

表单标签input的代码

2020-04-29 09:03 作者:小垃圾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='submit' value='登录'>
</form>
</body>
</html>

表单标签input的代码的评论 (共 条)

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