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 trialKellan Doom
1,622 PointsI am not sure why this code will not pass?
I am asked to "Create another table row with a cell that spans two columns" and I do not understand what I have done wrong to not pass. I have gone back and watched the training videos and can not find the error. please help.
<!DOCTYPE html>
<html>
<head>
<title>HTML Tables Challenge</title>
</head>
<body>
<h1>HTML Tables Challenge</h1>
<!-- Write your code below -->
<table boarder="1">
<thead>
<tr>
<th>Text 1</th>
<th>Text 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Hello</td>
<td>Hello</td>
</tr>
<tr>
<td>Hello 2</td>
<td>Hello 3</td>
<td>Hello 3</td>
<td>Hello 3</td>
<td>Hello 3</td>
<td>Hello 3</td>
</tr>
<tr>
<td>Hello 2</td>
<td>Hello 3</td>
<td>Hello 3</td>
<td>Hello 3</td>
<td>Hello 3</td>
<td>Hello 3</td>
</tr>
<tr>
<td>Hello 2</td>
<td>Hello 3</td>
<td>Hello 3</td>
<td>Hello 3</td>
<td>Hello 3</td>
<td>Hello 3</td>
</tr>
</tbody>
</table>
</body>
</html>
2 Answers
Emma Willmann
Treehouse Project ReviewerYou need to add a colspan="2" to a cell tag, like this:
<table>
<thead>
<tr>
<th>Any1</th>
<th>Any2</th>
</tr>
<tbody>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</tbody>
</thead>
</table>
Jesus Mendoza
23,289 PointsYou wrote table "boarder" instead of border!