<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>表单元素</title>
</head>
<body background="壁纸25.jpg">
<form action="mailto:1559963613@qq.com" method="post"><!表单域>
<table border="0" width="600" align="center"><!边框为0,宽600,高自动,居中>
<tr>
<td colspan="2" align="center">::欢迎给我留言</td>
</tr>
<tr>
<td width="120" align="center">用户名</td>
<td width="480">
<input type="text" maxlength="4" placeholder="请输入正确的名字"><!输入文本框 最大限制长度 提示文字>
</td>
</tr>
<tr>
<td width="120" align="center">密码</td>
<td width="480">
<input type="password" placeholder="请输入正确的密码"><!输入密码文本框>
</td>
</tr>
<tr>
<td width="120" align="center">E-mail</td>
<td width="480">
<input type="email" value="@qq.com"><!输入邮箱文本框 value是值>
</td>
</tr>
<tr>
<td width="120" align="center">职业</td>
<td width="480">
<select><!下拉菜单>
<option>平面设计</option>
<option>UI设计</option>
<option selected>网页设计</option><!优先选择下拉菜单中的一项>
<option>交互设计</option>
<option>产品设计</option>
</select>
</td>
</tr>
<tr>
<td width="120" align="center">表情</td>
<td width="480">
<input type="radio" name="biaoqing" checked><!表示默认被选中 单选按钮只能添加一个,复选按钮可以添加多个>
<img src="images/face1.gif" alt="表情">
<input type="radio" name="biaoqing">
<img src="images/face2.gif" alt="表情">
<input type="radio" name="biaoqing">
<img src="images/face3.gif" name="表情">
<input type="radio" name="biaoqing">
<img src="images/face4.gif" name="表情">
</td>
</tr>
<tr>
<td width="120" align="center">爱好</td>
<td width="480">
<input type="checkbox" checked>体育运动<!复选框 默认被选中>
<input type="checkbox">健身
<input type="checkbox">美食<br>
<input type="checkbox">时装
<input type="checkbox">电竞
<input type="checkbox">篮球
</td>
</tr>
<tr>
<td width="120" align="center">留言</td>
<td width="480">
<textarea cols="50" rows="10"></textarea><!文字区域 通过行数和列数来改变宽高>
</td>
</tr>
<tr>
<td width="120" align="center">附件</td>
<td width="480">
<input type="file">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="搜索">
<input type="submit" value="OK">
<input type="reset">
<button>按钮</button>
</td>
</tr>
</table>
<iframe src="02teachers.html" width="600" height="300" frameborder="0" align="middle"></iframe><!内联框,画中画效果>
</form>
</body>
</html>