<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>A8</title>
<style>
div.zhongjian {
text-align: center;
}
</style>
</head>
<body>
<table border="1">
<tr>
<th>heading</th>
<th>anthor heading</th>
</tr>
<tr>
<td>row1,cell1</td>
<td>row1,cell2</td>
</tr>
<tr>
<td> </td>
<td>row2,cell2</td>
<!--使用 ;处理没有内容的单元格,将显示表格线-->
</tr>
</table>
<hr>
<head>表格有标题,粗边框</head>
<table border="6">
<caption>标题</caption>
<tr>
<td>100</td>
<td>200</td>
<td>300</td>
</tr>
<tr>
<td>400</td>
<td>500</td>
<td>600</td>
</tr>
</table>
<hr>
<h1>横跨两列单元格</h1>
<table border="1">
<tr>
<th>name</th>
<th colspan="2">phone number</th>
</tr>
<tr>
<td>Bill</td>
<td>123456</td>
<td>123456</td>
</tr>
</table>
<h1>横跨两行单元格</h1>
<table border="1">
<tr>
<th>name</th>
<td>Bill</td>
</tr>
<tr>
<th rowspan="2">phone number</th>
<td>123456</td>
</tr>
<tr>
<td>123456</td>
</tr>
</table>
<hr>
<table border="1">
<tr>
<td>
<p>这是一个段落</p>
<p>这是另一个段落</p>
</td>
<td>这单元包含一个表格
<table border="1">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>这单元包含一个列表
<li>香蕉</li>
<li>菠萝</li>
<li>苹果</li>
</td>
<td>HELLO</td>
</tr>
<tr>
<td>HELLO</td>
</tr>
</table>
<hr>
<h1>没有cellpadding-边距</h1>
<table border="1">
<tr>
<td>first</td>
<td>row</td>
</tr>
<tr>
<td>second</td>
<td>row</td>
</tr>
</table>
<h1>带有cellpadding</h1>
<table border="1" cellpadding="10">
<tr>
<td>first</td>
<td>row</td>
</tr>
<tr>
<td>second</td>
<td>row</td>
</tr>
</table>
<hr>
<h2>背景颜色</h2>
<table border="1" bgcolor="red">
<tr>
<td>first</td>
<td>row</td>
</tr>
<tr>
<td>second</td>
<td>row</td>
</tr>
</table>
<h2>背景图像:</h2>
<table border="1" background="img/222.jpg">
<tr>
<td>first</td>
<td>row</td>
</tr>
<tr>
<td>second</td>
<td>row</td>
</tr>
</table>
<hr>
<h2>单元背景</h2>
<table border="1">
<tr>
<td bgcolor="red">first</td>
<td>row</td>
</tr>
<tr>
<td background="img/222.jpg">second</td>
<td>row</td>
</tr>
</table>
<hr>
<table width="400" border="1">
<tr>
<td align="left">name</td>
<td align="right">age</td>
<td align="right">habits</td>
</tr>
<tr>
<td align="left">bill</td>
<td align="right">20</td>
<td align="right">football</td>
</tr>
<tr>
<td align="left">chew</td>
<td align="right">22</td>
<td align="right">panda</td>
</tr>
<tr>
<td align="left">lily</td>
<td align="right">24</td>
<td align="right">game</td>
</tr>
<tr>
<th> </th>
<th align="right">66</th>
<th align="right">three</th>
</tr>
</table>
<hr>
<p><b>注释:</b>frame属性无法在Internet Explorer中正确的显示</p>
<p>table with frame=“box”:</p>
<table frame="box">
<tr>
<th>MOUTH</th>
<th>SAVINGS</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
<p>table with frame =“above”</p>
<table frame="above">
<tr>
<th>mouth</th>
<th>saving</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
<p>table with frame="below"</p>
<table frame="below">
<tr>
<th>mouth</th>
<th>savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
<p>table with frame="hsides"</p>
<table frame="hsides">
<tr>
<th>mouth</th>
<th>savings</th>
</tr>
<tr>
<td>January</td>
<td>savinga</td>
</tr>
</table>
<p>table with frame="vsides"</p>
<table frame="vsides">
<tr>
<th>mouth</th>
<th>saving</th>
</tr>
<tr>
<td>January</td>
<td>saving</td>
</tr>
</table>
<hr>
<h2>li:一个无序列表:</h2>
<ul>
<li>咖啡</li>
<li>茶</li>
<li>牛奶</li>
</ul>
<hr>
<p>ol有序列表</p>
<ol>
<li>苹果</li>
<li>西瓜</li>
<li>泰兰德</li>
</ol>
<ol start="100">
<li>农夫山泉</li>
<li>百岁山</li>
<li>怡宝</li>
</ol>
<hr>
<dl>
<dt>coffee</dt>
<dd>black hot drink</dd>
<dt>milk</dt>
<dd>white cold drink</dd>
</dl>
<hr>
<P>不同类型的无序列表</P>
<h1>Disc项目符号列表</h1>
<ul type="disc">
<li>apple</li>
<li>banana</li>
<li>lemon</li>
<li>orange</li>
</ul>
<h1>circle项目符号列表</h1>
<ul type="circle">
<li>apple</li>
<li>banana</li>
<li>lemon</li>
<li>orange</li>
</ul>
<h1>square项目列表符号</h1>
<ul type="square">
<li>apple</li>
<li>banana</li>
<li>lemon</li>
<li>orange</li>
</ul>
<hr>
<P>不同类型的有序列表</P>
<h1 >数字列表</h1>
<ol>
<li>apple</li>
<li>banana</li>
<li>lemon</li>
<li>orange</li>
</ol>
<h1>字母列表</h1>
<ol type="A">
<li>apple</li>
<li>banana</li>
<li>lemon</li>
<li>orange</li>
</ol>
<h1>小写字母列表</h1>
<ol type="a">
<li>apple</li>
<li>banana</li>
<li>lemon</li>
<li>orange</li>
</ol>
<h1>罗马字母列表</h1>
<ol type="I">
<li>apple</li>
<li>banana</li>
<li>lemon</li>
<li>orange</li>
</ol>
<div class="zhongjian">
<h1>小写罗马字母列表</h1>
<ol type="i">
<li>apple</li>
<li>banana</li>
<li>lemon</li>
<li>orange</li>
</ol>
</div>
<hr>
<h1>嵌套列表</h1>
<ul>
<li>coffee</li>
<li>tea
<ul>
<li>gre