实例
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>天津海盟自动化</title> </head> <body> <form action="" method="post"> <table border="0" cellspacing="0" cellpadding="10" align="center" width="500" bgcolor="skyblue"> <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"><label for="password">密码:</label></td> <td aglin="left"><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">女 <input type="radio" name="sex" value="secret" checked="">保密 </td> </tr> <tr align="center"> <td align="right">兴趣:</td> <!-- 不需要进入焦点 --> <td align="left"> <input type="checkbox" name="happy[]" value="html">HTML <input type="checkbox" name="happy[]" value="css">CSS <input type="checkbox" name="happy[]" value="javascript">JavaScript <input type="checkbox" name="happy[]" value="php" checked="">PHP </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="" selected="">明天不能像今天这样</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="../image/1.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" rows="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>
运行实例 »
点击 "运行实例" 按钮查看在线实例