3月19日作业
代码如下:
实例
<html> <head> <meta charset="UTF-8"> </head> <body> <form action="" method="get"> <fieldset> <legend align="center">用户注册</legend> <table border="1" cellspacing="0" cellpadding="6" align="center" width="400" bgcolor="powderblue"> <caption><h2>用户注册</h2></caption> <tr> <td align="right"><label for="username">用户名:</label></td> <td align="left"><input type="text" id="username" name="username" value="" placeholder="example@mail.com" size="30">*</td> </tr> <tr> <td align="right"><label for="password">密码:</label></td> <td align="left"><input type="password" id="password" name="password" value="" placeholder="字母+数字不少于10位" size="30">*</td> </tr> <tr> <td align="right">性别:</td> <td align="left"><input type="radio" name="xingbie" value="nan">男 <input type="radio" name="xingbie" value="nv">女 <input type="radio" name="xingbie" value="baomi" checked="">保密 </td> </tr> <tr> <td align="right">自恋吗:</td> <td align="left"><input type="checkbox" name="shuzu[]" value="wssg">我是帅哥 <input type="checkbox" name="shuzu[]" value="wsmn">我是美女 <input type="checkbox" name="shuzu[]" value="wsld" checked="">我是老大 </td> </tr> <tr> <td align="right">学习程度:</td> <td> <select name="1"> <option value="">我是小白</option> <option value="">已经入门了</option> <option value="">我是高手</option> <option value="" selected="">已经出师了</option> </select> </td> </tr> <tr> <td align="right">文件上传:</td> <td align="left"><input type="file" name="wenjian"> </td> </tr> <tr> <td align="right">自我介绍:</td> <td align="left"><textarea name="comment rows="4" cols="30" placeholder="请介绍详细"></textarea></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" name="submit" value="注册"> <input type="reset" name="reset" value="重填"></td> </tr> </table> </fieldset> </form> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例
手抄作业如下: