html
表格
table:
- table属性:
- align="center" 居中
- align="right" 居右
- 默认在左(left)
-cellspacing="" :单元格的边距
-cellpadding="":边框与单元格的距离
2.tr属性:
-align="center" 居中
-th与td用法一样,只是th能使文字加粗
<html>
<head>
<meta charset="utf-8"/>
<title>个人简历</title>
</head>
<body>
<table border="1" width="800px" height="150px" align="center" bgcolor="#000080">
<tr align="center">
<th rowspan=3>个人信息</th>
<th>姓名</th>
<td>张三</td>
<th>性别</th>
<td>男</td>
<th>婚姻状况</th>
<td>未婚</td>
<th rowspan=3>照片</th>
</tr>
<tr align="center">
<!-- <td>个人信息</td> -->
<th>出生地</th>
<td>河北</td>
<th>户口</th>
<td>泊头</td>
<th>年月日</th>
<td>1999/11/11</td>
<!--<td >照片</td>-->
</tr>
<tr align="center">
<!--<td>个人信息</td>-->
<th>身份证</th>
<td colspan=3>000000</td>
<!-- <td>性别</td>
<td>男</td> -->
<th>手机</th>
<td>151000000</td>
<!--<td>照片</td>-->
</tr>
</table>
</body>
</html>
表单
input:属性
type: text(文本) 默认
-
password(密码)
-radio (单选框)
-checkbox(复选框)<input type="text"> 密码:<input type="password">
单选框
<form>
<input type="radio" name="sex" value='boy'> 男
<input type="radio" name="sex" value="girl"> 女
</form>
复选框
你们的爱好:
<input type="checkbox" name="eat" value='eat'> 吃
<input type="checkbox" name='play' value='play'> 玩
<input type="checkbox" name="loveMe" value='loveMe'> 爱自己