程序要求:写一个用户注册文件register.html,运行结果如下: (15分)
程序代码:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>会员注册页面:register.html</title> </head> <body> <table align="center" border="2" bgcolor= #9ad3a4 cellspacing="5" > <tr> <th colspan = "2" align="center">会员注册</th> </tr> <tr> <th align="right">用户名:</th> <td><input type="text" name="username"></td> </tr> <tr> <th align="right">密码:</th> <td><input type="password" name="userpass"></td> </tr> <tr> <th align="right">确认密码:</th> <td><input type="password" name="userpass"></td> </tr> <tr> <th align="right">性别:</th> <td><input type="radio" name="sex" value="男">男 <input type="radio" name="sex" value="女">女</td> </tr> <tr> <th align="right">爱好:</th> <td><input type="checkbox" name="ins" value="体育">体育 <input type="checkbox" name="ins" value="音乐">音乐 <input type="checkbox" name="ins" value="文学">文学 <input type="checkbox" name="ins" value="其他">其他 </td> </tr> <tr> <th align="right">所在城市:</th> <td><select name="city"> <option value="北京">北京 <option value="上海">上海 <option value="成都">成都 </select></td> </tr> <tr> <th align="right">照片:</th> <td><input type="text" name="imgName"> <input type="file" for="xFile" accept="image/png,image/jpeg,image/gif,image/jpg"> </td> </tr> <tr> <th align="right">备注:</th> <td><textarea value = "备注"></textarea></td> </tr> <tr> <td></td> <td><input type="submit" value="提交"> <input type="reset" value="重置"> </td> </tr> </table> </body> </html>
程序运行截图