Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialE Mula
5,081 PointsInside the table footer, add a colspan attribute to the table cell so that it spans the width of the table.
need some help on where to insert the colspan attribute to the table cell . it keep saying its wrong
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Tables</title>
</head>
<body>
<tfooter>
<table>
<tfooter>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Job</th>
</tr>
</thead>
<tbody>
<tfoot>
<tr>
<td>Nick</td>
<td>Designer</td>
</tr>
<tr>
<td>Andrew</td>
<td>Developer</td>
</tr>
<tr>
<td>Dave</td>
<td>Developer</td>
<tfoot>
</tr>
<tr>
<td colspan="0">Data is updated every 15 minutes.</td>
</tr>
<tfooter>
</table>
</body>
</html>
2 Answers
Steven Parker
231,236 PointsTo span the entire table, the element must cover 2 columns, but the value shown is 0.
There are some other issues as well that might interfere with completing the challenge:
- there are several stray"<tfooter>" start tags (which is not a valid tag type)
- there is no ending "</tfoot>" tag to go with the start tag
- the table footer is overlapping an existing row
E Mula
5,081 Pointsthanks !