1.块级标签(独占一行)
H系列标签,p标签,div标签
2.行内标签
span标签
3.form标签
<form action="表单提交数据的地址" method=“GET/POST”></form>
3.1文本输入框
<input type="text" />
3.2密码输入框
<input type="password" />
3.3按钮
<input type="button" value=“按钮” />
3.4提交
<input type="submit" value="提交"/>
3.5单选
<input type="radio" name="radio1" value="radio1" checked="checked"/>
<input type="radio" name="radio1" value="radio2"/>
3.6多选
<input type="checkbox" name="checkbox1" value="checkbox1"/>
<input type="checkbox" name="checkbox1" value="checkbox2"/>
3.7上传
<input type="file" name="filename"/>
需要指定<form enctype="multipart/form-data">
3.8重置
<input type="reset" value="重置" />
3.9多行文本框
<textarea name="moretext"></textarea>
3.10.1下拉框
<select name="select_test" >
size="1"#控制显示长度
multiple="multiple"#控制是否多选
<option value="1" >1</option>
<option value="2" >2</option>
<option value="3" >3</option>
</select>
3.10.2select分组
<select name="select_test" >
<optgroup label="1">
<option value="1" >1.1</option>
<option value="2" >1.2</option>
<option value="3" >1.3</option>
</optgroup>
<optgroup label="2">
<option value="1" >2.1</option>
<option value="2" >2.2</option>
<option value="3" >2.3</option>
</optgroup>
</select>
4.a标签用法
target=""
4.1链接
<a href="http://wwww.baidu.com">baidu</a>
4.2锚点
<a href="#t1">1</a>
<a href="#t2">2</a>
<a href="#t3">3</a>
<div id="#1">1</div>
<div id="#2">2</div>
<div id="#3">3</div>
5.img图片
<img src="路径" alt=“图片” title="图片"/>
6.ul无序列表
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
7.ol有序列表
<ol>
<li>1</li>
<li>2</li>
<li>3</li>
</ol>
8.dl
<dl>
<dt>标题</dt>
<dd>1</dd>
<dd>2</dd>
<dd>3</dd>
</dl>
9.table
<table>
<thead>
<tr>
<td>1</td><td>1</td>
</tr>
</thead>
<tbody>
<tr>
<td>1.1</td><td>1.2</td>
</tr>
<tr>
<td>2.1</td><td>2.2</td>
</tr>
</tbody>
</table>
合并单元格
<td colspan="2"></td> #横向合并
<td rowspan="2"></td>#纵向合并
10.label标签
关联输入框
<label for="username">用户名:</label>
<input id="username" type="text" name="username" />