看代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>表单t</title> </head> <body> <h1>QQ注册</h1> <form action="前端笔记.html" method="POST"> <p>昵称:<input type="text"></p> <p>密码: <input type="password"></p> <p>邮箱:<input type="email"></p> <p>性别: <input type="radio"name="sex">男 <input type="radio"name="sex">女</p> <p>爱好:<input type="checkbox">阅读<input type="checkbox">看电视<input type="checkbox">购物<input type="checkbox">减肥</p> <p>数字:<input type="number"></p> 生日: <select name="year" > <option value="0">请选择年份</option> <option value="0">2009</option> <option value="0">2010</option> </select> <select name="month" > <option value="0">请选择月份</option> <option value="0">1月</option> <option value="0">2月</option> <option value="0">3月</option> <option value="0">4月</option> <option value="0">5月</option> <option value="0">6月</option> <option value="0">7月</option> <option value="0">8月</option> <option value="0">9月</option> <option value="0">10月</option> <option value="0">11月</option> <option value="0">12月</option> </select> <select name="day" > <option value="0">请选择天数</option> <option value="0">1</option> <option value="0">2</option> <option value="0">3</option> <option value="0">4</option> <option value="0">5</option> <option value="0">6</option> <option value="0">7</option> <option value="0">8</option> <option value="0">9</option> <option value="0">10</option> <option value="0">11</option> <option value="0">12</option> </select> <p>注册日期:<input type="date"></p> <input type="submit" value="注册"> <!--提交按钮-->
<input type="reset" > <!--重置按钮-->
</form>
</body>
</html>