程式要求:寫一個用戶注冊檔案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>
程式運行截圖

轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/244303.html
標籤:其他
