a标签
<a href="http://www.baidu.com" target="_self">百度</a>
1.herf:链接地址
2.target:文档显示何处
_blank:创建新的页面
_self:当前页面跳转
锚链接
<a name="top">顶部</a>
<a herf="#top">点击跳转顶部</a>
点击跳转到top
img标签
<img src="boat.gif" alt="Big Boat" width="304" height="228">
scr中填写图片地址
alt 属性用来为图像定义一串预备的可替换的文本,浏览器无法显示图片时会显示Big Boat
width:图像宽度
height:图像高度
table标签
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
Header 1 | Header 2 |
---|---|
row 1, cell 1 | row 1, cell 2 |
row 2, cell 1 | row 2, cell 2 |
border:边框宽度
列表
无序列表
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
有序列表
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
框架
<frameset rows="20%,*">
<frame src="top.html" />
<frameset cols="30%,*">
<frame src="menu.html" />
<frame src="main.html" name="c" />
</frameset>
</frameset>
frameset链接
rows行方向占比
cols列方向占比