1 <form method="post" action="demo.php"> 2 <fieldset> 3 <legend>个人信息:</legend> 4 姓名: <input type="text" name="type" value="魂牵梦绕"><br/> 5 6 籍贯: <input type="text" name="type" value="甘肃.兰州"><br/> 7 8 邮箱: <input type="email" name="email" value="1329589680@qq.com"><br/> 9 10 家庭住址: <input type="text" name="text" value="甘肃.兰州"><br> 11 12 日期<input type="date" name="date" value=""><br> 13 14 时间<input type="time" name="time" value=""><br> 15 16 月份<input type="month" name="month" value=""><br> 17 18 星期<input type="week" name="week" value=""><br> 19 20 总体时间<input type="datetime-local" name="date" value=""><br> 21 22 23 电话<input type="tel" name="mobile"><br> 24 25 颜色<input type="color" name="likecol"><br> 26 27 <input type="search" name="lookup"> 28 <!--定义用于输入搜索字符串的文本字段,比如站内搜索.浏览器不是很支持--><br> 29 30 <input type="number" name="num" min="1" max="5"><!--min 和 max 属性可用于规定 <input> 元素的最小/最大值。value 属性可规定默认值。step 属性可规定 <input> 元素的合法数字间隔。实例:如果 step="3",则合法数字应该是 -3、0、3、6,以此类推。该属性可以与 min 和 max 属性配合使用,以创建合法值的范围。--> 31 32 <br> 33 34 35 <input type="checkbox" name="hobbies" value="running">跑步 36 37 <input type="checkbox" name="hobbies" value="running">篮球 38 39 <input type="checkbox" name="hobbies" value="running">乒乓球 40 41 <input type="checkbox" name="hobbies" value="running">羽毛球<br/> 42 43 <input type="radio" name="gender" value="female" checked="true">男 44 45 <input type="radio" name="gender" value="female">女<br/> 46 47 <input type="file" name="pic"><br/> 48 49 <input type="hidden"><br/> 50 <!--隐藏域,该组件不显示在页面中,但是其值会被提交--> 51 52 53 <form method="post" action="demo.php"> 54 <label for="urse">用户名:</label> 55 <input type="text" id="urse" name="ursename" placeholder="邮箱/手机号/用户名"/><br/> 56 <label for="password">密 码:</label> 57 <input type="password" id="password" name="pass" placeholder="请输入密码" /><br/><input type="submit" value="提交信息"> 58 <input type="reset" value="重置"> 59 </form><br> 60 61 62 <input type="image" src="/storage/emulated/0/micgifmake/saveImage/1615391980248.gif" alt="submit" width="50" height="50"/><br> 63 64 选择一个文件<input type="file" name="img" accept="image/*,audio/*,video/*"><br/> 65 <input type="submit" value="提交"><br> 66 </fieldset> 67 </form>
浙公网安备 33010602011771号