1.要求:制作如下图的表单
2.内容:
源代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h4>青春不常在,抓紧谈恋爱</h4>
<table width="600">
<tr>
<td>性别:</td>
<td>
<input type="radio" name="sex" value="nan"checked>男
<input type="radio" name="sex" value="nan">女
</td>
</tr>
<tr>
<td>生日:</td>
<td>
<select>
<option>--请选择年份--</option>
<option>2004</option>
</select>
<select>
<option>--请选择月份--</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
<select>
<option>--请选择日--</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</td>
</tr>
<tr>
<td>所在地区</td>
<td><input type="text" value="北京思密达"></td>
</tr>
<tr>
<td>婚姻状况:</td>
<td>
<input type="radio" name="marry" id="weihun" checked="checked"><label for="weihun">未婚</label>
<input type="radio" name="marry" id="yihun"><label for="yihun">已婚</label>
<input type="radio" name="marry" id="lihun"><label for="lihun">离婚</label>
</td>
</tr>
<tr>
<td>学历:</td>
<td><input type="text" value="幼儿园"></td>
</tr>
<tr>
<td>喜欢的类型:</td>
<td>
<input type="checkbox" name="love">妩媚的
<input type="checkbox" name="love">可爱的
<input type="checkbox" name="love">小鲜肉
<input type="checkbox" name="love">老腊肉
<input type="checkbox" name="love">都喜欢
</td>
</tr>
<tr>
<td>个人介绍</td>
<td>
<textarea>自我介绍</textarea>
</td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" value="免费注册">
</td>
</tr>
<tr>
<td></td>
<td>
<input type="checkbox" checked="checked">我同意注册条款和会员加入标准
</td>
</tr>
<tr>
<td></td>
<td>
<a href="#">我是会员,立即登录</a>
</td>
</tr>
<tr>
<td></td>
<td>
<h4>我承诺</h4>
<ul>
<li>年满18岁、单身</li>
<li>抱着严肃的态度</li>
<li>真诚寻找另一半</li>
</ul>
</td>
</tr>
</table>
</body>
</html>
结果如下:
内容和要求一直,实验完成!!!