代码部分:
实例
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>黄网会员注册</title> </head> <body> <form action="" method="post"> <table border="0" cellspacing="0" cellpadding="8" align="center" bgcolor="yellow"> <caption><h1>会员注册</h1></caption> <tr><td colspan="2"><hr></td></tr> <tr align="center"> <td align="right"><label for="email">邮箱:</label></td> <td align="left"><input size="30" type="text" name="email" id="email" placeholder="@yellow.com"></td> </tr> <tr> <td><label for="password">密码:</label></td> <td><input size="30" type="password" name="password" id="password" placeholder="字母+数字,不少于8位数"></td> </tr> <tr> <td>性别:</td> <td> <input type="radio" name="sex" value="male">骚女 <input type="radio" name="sex" value="female">贱男 <input type="radio" name="sex" value="renyao" checked>人妖 </td> </tr> <tr> <td>兴趣:</td> <td> <input type="Checkbox" name="hobby[]" value="cang" checked>苍老师 <input type="Checkbox" name="hobby[]" value="xiaoze">小泽玛利亚 <input type="Checkbox" name="hobby[]" value="jizemingbu">吉泽明步 <input type="Checkbox" name="hobby[]" value="diya">蒂亚 </td> </tr> <tr> <td>级别:</td> <td> <select name="level"> <option value="">一点点骚</option> <option value="">闷骚</option> <option value="">明骚</option> <option value="" selected="">狂骚</option> </select> </td> </tr> <tr> <td>头像:</td> <td><img src="../image/3.jpg" height="30"><input type="file" name="photo" accept="images/*"></td> </tr> <tr> <td><label>信息:</label></td> <td><textarea name="commet" rows="5" cols="40" placeholder="你最喜欢看这些明星的哪部电影"></textarea></td> </tr> <tr> <td colspan="2" align="center"><hr><input type="submit" name="sunmit" value="提交"> <input type="reset" name="reset" value="重填"> </td> </tr> </table> </form> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例
手抄部分: