HTML元素
块级元素:独占一行空间,可设置宽高,不能将块级元素嵌套在行内元素中
<div></div>
<p></p>
<h1>标题</h1>
<h2>标题</h2>
<h3>标题</h3>
<h4>标题</h4>
<h5>标题</h5>
<h6>标题</h6>
<ul>
<li></li>
<li></li>
</ul>
<ol start="" reversed>
<li></li>
<li></li>
</ol>
<dl>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
</dl>
<table width="" border="" cellspacing="" cellpadding="" align="">
<caption>标题</caption>
<colgroup>
<col span="2" style="">
<col>
</colgroup>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2" rowspan="2"></td>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</tbody>
<tfoot>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tfoot>
</table>
行内元素:与其他元素共享一行空间,不可设置宽高,一般被嵌套在块级元素中
<span></span>
<button></button>
<a href="" target="">超链接</a>
<b>加粗</b>
<strong>强调加粗</strong>
<i>倾斜</i>
<em>强调倾斜</em>
<u>下划线</u>
<sup>上标</sup>
<sub>下标</sub>
空元素:只包含单个标签,通常用于在文档中插入部分内容,例如img
替代元素