由tbody元素建立的行组的第2行没有从其开始的单元格
代码如下:
<!DOCTYPE html>
<html>
<head>
<title>University of Hartford Asian Student Association</title>
<link rel="stylesheet" href="style.css">
<meta charset="UTF-8">
</head>
<body>
<table>
<tr>
<td class="t1">
<img src= "logo.jpg" alt="">
</td>
<td class="WA">
<header><h1><i>Asian Student Association (ASA) </i></h1></header>
</td>
</tr>
</table>
<nav class="navbar">
<a href = "index.html">Home</a>
<a href = "event.html">Events list</a>
<a href = "photos.html">Photos</a>
<a href = "contact.html">Contact us</a>
</nav>
<div class="Cdiv">
<header><strong>The list of different activities</strong></header>
<table>
<tr>
<th>Activities</th>
<th>Time</th>
<th>Address</th>
<th>Cost</th>
<tr>
<tr>
<td>Bubble Tea event</td>
<td>Tuesday October 14th.</td>
<td>GSU Sofa Area</td>
<td>$5 for each, and we have different taste!</td>
</tr>
<tr>
<td>Calligraphy Selling event</td>
<td>Tuesday October 7th.</td>
<td>GSU Sofa Area</td>
<td>$5 each name, written for people in asian calligraphy.</td>
</tr>
<tr>
<td>Chinese New Year Celebration event</td>
<td>Tuesday October 7th.</td>
<td>undecided</td>
<td>undecided.</td>
</tr>
</table>
<table>
<caption>Drama Present</caption>
<tr><td>
<img src="oi2.jpg" width="400" height="250" alt="">
</td></tr>
</table>
<footer>
<p>
Designed by Han Yue ©2014<br>
If you have question, please email to <a href="mailto:yue@hartford.edu" class="mail">yue@hartford.edu</a>
</p>
</footer>
</div>
</body>
</html>
对不起我的代码,我知道有点乱,但我真的不知道如何解决这个....有人请帮忙
我得到的错误是:
“第43行,第4列:由tbody元素建立的行组的第2行没有从其开始的单元格。 “
PS:第43行是oi2图像的位置
答案 0 :(得分:2)
您似乎错过了结束标记:
<tr>
<th>Activities</th>
<th>Time</th>
<th>Address</th>
<th>Cost</th>
</tr>