1. 程式人生 > 實用技巧 >html表單案例

html表單案例

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>html案例</title>
</head>
<body>
<form action="#" method="post" ></form>
<table border="1" align="center" width="500">
<tr>
<td>
<label for="username">使用者名稱</label>
</td>
<td><input type="text" name="username" id="username" placeholder="請輸入使用者名稱"></td>
</tr>
<tr>
<td><label for="password">密碼</label></td>
<td><input type="password" name="password" id="password" placeholder="請輸入密碼"></td>
</tr>
<tr>
<td><label for="email">郵箱</label></td>
<td><input type="email" name="email" id="email" placeholder="請輸入正確郵箱"></td>
</tr>password
<tr>
<td><label for="tel">手機號</label></td>
<td><input type="text" name="tel" id="tel" placeholder="請輸入手機號"></td>
</tr>
<tr>
<td>性別</td>
<td>
<input type="radio" name="gender" value="male">男
<input type="radio" name="gender" value="female">女
</td>
</tr>
<tr>
<td>出生日期</td>
<td><input type="date" name="birthday"></td>
</tr>
<tr>
<td>驗證碼</td>
<td><input type="text" name="checkcode">
<img src="img/verify_code.jpg">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="登入">
</td>

</tr>
</table>
</body>
</html>