小练习:做出如下表格
答案:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>任务一 表格练习</title>
<style>
td{ text-align:center}
</style>
</head>
<body>
<table border="1" width="300" height="200">
<tr><th rowspan="4">早餐类</th><th colspan="2">价格表</th></tr>
<tr><td>汉堡</td><td>25元</td></tr>
<tr><td>三明治</td><td>25元</td></tr>
<tr><td>土司</td><td>25元</td></tr>
</table>
</body>
</html>