HTML基本标签大全

HTML标签

<h#></h#>标题标签
<hr/>水平线,单标记
<p></p>段落标签
&nbsp 空格
<i></i>斜体 <em></em>强调语气斜体
<b></b>粗体 <strong></strong>更强烈的语气
<del></del>中划线
<ins></ins>下划线
<sub></sub>下标
<sup></sup>上标
<span></span>为文字单独定义样式
<q></q>短文本的引用
<blockquote></blockquote>长文本的引用
</br>换行
<nobr></nobr>不换行
无序列表
<ul>
<li></li>
<li></li>
....
</ul>
有序列表
<ol>
<li></li>
<li></li>
...
</ol>
定义列表
<dl>
<dt></dt>标题
<dd></dd>内容
</dl>
a标签
<a href="网址" target="目标,打开方式" name="锚点"></a>
img标签
<img alt="图片显示不出来了" title="图片名" src="文件路径"/>
img的热点区域
<img src="" usemap="#Map">
<map name="Map" id="Map">
<area shape="rect" coords="左上角,右下角坐标(,,,,)" href=""/>
<area shape="circle" coords="圆心坐标,半径长度(,,,)" href=""/>
<area shape="poly" coords="" href=""/>
</map>
标签的嵌套
a标签嵌套image标签

table标签
<table>
<tr>
<th>标题</th>
<th>标题</th>
</tr>
<tr>
<td>内容</td>
<td>内容</td>
</tr>
<tr>
<th>标题</th>
<td>内容</td>
</tr>
</table>
表格行合并
<table>
<tr>
<th rowspan="2">标题</th>
<td>内容</td>
<tr>
<tr>
<td>内容</td>
<tr>
</table>
表格列合并
<table>
<tr>
<th colspan="2">标题</th>
</tr>
<tr>
<td>内容</td>
<td>内容</td>
</tr>
</table>
cellspacing cellpadding
align="center"
bgcolor="red"
summary=""
<caption>表格标题</caption>

table标签中其他标签的内嵌

table布局

红色:
rgb(255,0,0)
bgcolor="red"
bgcolor="rgb(255,0,0)"
bgcolor="#FF0000"
bgcolor="#F00"

原文地址:https://www.cnblogs.com/caozong/p/5690575.html