单选框 复选框 按钮

<doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>study</title>
    <style>
    </style>
</head>
<body>
<h1>注册</h1>
<form action="4-2-2.html" method="get">
<P>名字<input type="text" name="username"></P>
<p>密码<input type="password" name="pwd"></p>
<!-- input type="radio" 单选框标签
input type="checkbox" 复选框标签  
value 值
name 组 -->
<p>
    <input type="radio" value="boy" name="sex">男
    <input type="radio" value="girl" name="sex">女
</p>
<p>
    <input type="checkbox" value="sleep" name="hobby">睡觉
    <input type="checkbox" value="swimming" name="hobby">游泳
    <input type="checkbox" value="chat" name="hobby">聊天
    <input type="checkbox" value="gema" name="hobby">游戏
</p>
<!-- input type="button" 普通按钮
input type="image" 图像按钮
input type="submit" 提交按钮
input type="reset" 重置按钮 -->
<p>按钮:
    <input type="button" name="enniu" value="点击">
</p>
<P>
    <input type="submit">
    <input type="reset">
</P>
</form>
</body>
</html>
posted @ 2023-03-09 09:31  小小的羊  阅读(19)  评论(0)    收藏  举报