3.19制作注册页面
实例
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>3.19作业</title> </head> <body> <form action="" method="post"> <table border="0" cellpadding="8" cellspacing="0" width="400" align="center" bgcolor="turquoise "> <tr align="center"> <td colspan="2"><h3>用户新增</h3></td> <tr ><td colspan="2"><hr></td></tr> </tr> <tr align="center"> <td align="right" width="100"><label for="name">姓名:</label></td> <td align="left" width="100"><input type="text" id="name" name="name" value="" placeholder="必填" size="30"></td> </tr> <tr align="center"> <td align="right" ><label for="phone">手机号:</label> </td> <td align="left" ><input type="text" name="phone" id="phone" value="" placeholder="必填" size="30" ></td> </tr> <tr align="center"> <td align="right" ><label for="password">密码:</label> </td> <td align="left" ><input type="password" name="password" id="password" value="" placeholder="密码不能少于6位" size="30"></td> </tr> <tr align="center"> <td align="right" >性别:</td> <td align="left" > <input type="radio" name="xb" value="nan" size="30">男 <input type="radio" name="xb" value="nv" size="30" checked="">女 </td> </tr> <tr align="center"> <td align="right" >所属部门:</td> <td align="left"> <select name="bm"> <option value="">销售部</option> <option value="">财务部</option> <option value="">采购部</option> </select> </td> </tr> <tr align="center"> <td align="right">爱好:</td> <td align="left"> <input type="checkbox" name="ah[]" value="kdy">看电影 <input type="checkbox" name="ah[]" value="tg">听歌 <input type="checkbox" name="ah[]" value="wyx">玩游戏 </td> </tr> <tr align="center"> <td align="right">头像:</td> <td align="left"> <img src="images/13.png" height="30"> <input type="file" name="tx" accept="images/*"> </td> </tr> <tr align="center"> <td align="right"><label for="wenben">备注:</label> </td> <td align="left"><textarea name="wenben" id="wenben" rows="3" cols="30"></textarea> </td> </tr> <tr > <td align="center" colspan="2"> <hr> <input type="submit" name="submit" value="提交"> <input type="submit" name="submit" value="重置"> </td> </tr> </table> </form> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例
手写: