代码: <!DOCTYPE html> <html> <head> </head> <body> <form action="" method="post"> <table border="0" cellspacing="0" align="center" width="400" bgcolor="lightblue"> <caption><h2>用户注册</h2></caption> <tr><td colspan="2"><hr></td></tr> <tr align="center"> <td align="right" width="60"><label for="name">姓名:</label></td> <td align="left" width="300"><input type="text" id="name" name="name" value="" placeholder="example.@mail.com" size="30" width="200"></td> </tr> <tr align="center"> <td align="right" width="60"><label for="password">密码:</label></td> <td align="left" width="300"><input type="text" id="password" name="name" value="" placeholder="字母数字不少于10位" size="30" width="200"></td> </tr> <tr align="center"> <td align="right">性别:</td> <td align="left"> <input type="radio" name="sex" value="male">男 <input type="radio" name="sex" value="female" checked="">女 <input type="radio" name="sex" value="select">保密</td> </tr> <tr align="center"> <td align="right">兴趣:</td> <td align="left"> <input type="checkbox" name="habby[]" value="html" >html <input type="checkbox" name="habby[]" value="css" >css <input type="checkbox" name="habby[]" value="php" >php <input type="checkbox" name="habby[]" value="java" >java </td> </tr> <tr align="center"> <td align="right"><label for="level">级别</label></td> <td align="left"> <select name="level" id="level"> <option value="">我是零基础</option> <option value="">已经入们了</option> <option value="">做过一些项目</option> <option value="">大神</option> </select> </td> </tr> <tr align="center"> <td align="right"><label for="photo">头像:</label></td> <td align="left"> <img src="13.png" height="30"> <input type="file" id="" name="photo" accept="image/*"> </td> </tr> <tr align="center"> <td valign="middle" align="right" ><label>简介:</label></td> <td align="left"><textarea name="comment" id="comment" row="5" cols="40" placeholder="文明上网,理性发言"></textarea> </td> </tr> <tr> <td colspan="2" align="center"> <hr> <input type="submit" name="submit" value="提交"> <input type="reset" name="reset" value="重填"> </td> </tr> </table> </form> </body> </html>