form action= "" div id= " demo " 用户名(文本): input type= " text " name= " user " brbr 密码(文本): input type= " password " name= " key " brbr 性别(单选): input type= " radio " name= " sale " value= " 1 " 男
<form action=""> <div id="demo"> 用户名(文本): <input type="text" name="user"><br><br> 密码(文本): <input type="password" name="key"><br><br> 性别(单选): <input type="radio" name="sale" value="1">男 <input type="radio" name="sale" value="0">女<br><br> 技能(多选): <input type="checkbox" name="skill" value="1"> Jave开发 <input type="checkbox" name="skill" value="2"> Vue开发 <input type="checkbox" name="skill" value="3"> PHP开发<br><br> 城市:(下拉框) <select name="city"> <option value="sh">上海</option> <option value="bj">北京</option> <option value="xa">西安</option> <option value="sz">深圳</option> </select><br><br> 说明:(多行文本) <textarea name="desc" cols="30" rows="10"></textarea><br><br> 资料提交:(文件) <input type="file" name="userFile"><br><br> <input type="reset" value="重置"> <input type="submit" value="提交"><br><br> </form>