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 trialRicard Taujenis
4,383 PointsHy have an issue with adding colspan at the correct place
have to place it at <tfoot> but afterwards it says at the <td> ?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Tables</title>
</head>
<body>
<table>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Job</th>
</tr>
</thead>
<tbody>
<tfoot><td colspan>Data is updated every 15 minutes</td>
<tr>
<td>Nick</td>
<td>Designer</td>
</tr>
</tfoot>
<tr>
<td>Andrew</td>
<td>Developer</td>
</tr>
<tr>
<td>Dave</td>
<td>Developer</td>
</tr>
</tbody>
</table>
</body>
</html>
1 Answer
Steven Parker
231,275 PointsLooks like you have a few issues, but somehow most got past the checker up to this point! In your footer:
<tfoot><td colspan>Data is updated every 15 minutes</td>
<tr>
<td>Nick</td>
<td>Designer</td>
</tr>
</tfoot>
The challenge asked you to create ONE cell in the row. You have 3 here, and one of them isn't inside the row tags at all - you don't want that! But that one does contain the text they wanted to see. So move it inside the row where the other 2 are, and then delete those extra 2.
Then, when you add the colspan
attribute, remember to give it a value (colspan=VALUE
). The challenge says to make it span the whole table, so the value you want to give it would be the same as the number of cells that are on the other rows of the table.
Hopefully that will get you back on track.