首页 > 代码库 > html第一节:标签和表单

html第一节:标签和表单

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus?">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
</head>
<body>
<form>
<table cellspacing="0" cellpadding="10" border="1" width="500" align="center" bgcolor="#adeaea">

<tr>
<th colspan="2" >用户注册</th>
</tr>
<tr>
<td>用户名</td>
<td><input type="text" name=""></td>
</tr>
<tr>
<td>密&nbsp码</td>
<td><input type="password" name=""></td>
</tr>
<tr>
<td>性&nbsp别</td>
<td>男<input type="radio" name="sex" checked="checked" />
女<input type="radio" name="sex"/>
</td>
</tr>
<tr>
<td>爱&nbsp好</td>
<td>
<input type="checkbox" name="" value="" />唱歌
<input type="checkbox" name="" value="" />唱歌1
<input type="checkbox" name="" value="" />唱歌2
<input type="checkbox" name="" value="" />唱歌3
<input type="checkbox" name="" value="" />唱歌4
<br/>
<input type="checkbox" name="" value="" />唱歌5
<input type="checkbox" name="" value="" />唱歌6
</td>
</tr>
<tr>
<td>家&nbsp乡</td>
<td>
<select name="">
<optgroup label="华北区">
<option>北京1</option>
<option>北京2</option>
<option>北京3</option>
</optgroup>
<optgroup label="华中区">
<option>武汉1</option>
<option>武汉2</option>
<option>武汉3</option>
</optgroup>
</select>
</td>
</tr>
<tr>
<td>自我介绍</td>

<td><textarea name="" cols="50" rows="10"></textarea></td>

</tr>
<tr>
<td colspan="2" align="center"><button>我要注册</button>
</td>
</tr>

 </table>

 </form>

</body>
</html>

html第一节:标签和表单