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 trialDaniel Sanchez
Courses Plus Student 1,136 PointsI dont understand what they mean by put two header cells inside of the row I created. I thought I already did that. Help
In the 4th challenge task its asking me to put two header cells inside of the third row but i'm just not understanding what I need to do here? I thought this meant to add two columns under the row I created in the form of </td> but it's saying to add <th>? I don't get what the challenge is asking me to do
<!DOCTYPE html>
<html>
<head>
<title>HTML Tables Challenge</title>
</head>
<body>
<h1>HTML Tables Challenge</h1>
<table border="10" cellpadding="7" cellspacing="7">
<thead>
<tr>
<th align="middle">Pokemanz</th>
<th valign="middle">Digimanz</th>
<th align="middle"> Neopetz</th>
</tr>
</thead>
<tfoot>
<td colspan="3" align="middle">All the mons are belong to me!</td>
</tfoot>
<tr>
<td>Pikachu</td>
<td>Patamon</td>
<td align="middle">The alien<br> Bug one</td>
</tr>
<tr>
<td>Charmander</td>
<td>Agumon</td>
<td align="middle">The happy<br> dragon one</td>
</tr>
<tr>
<td>Jigglypuff</td>
<td>Kirbymon</td>
<td>Soup Kitchen</td>
</tr>
</table>
</body>
</html>
2 Answers
Dave Harker
Courses Plus Student 15,510 PointsHi Daniel Sanchez,
I think you're trying to add more than is required. I just ran through it and the challenge seems to work fine; while your code might be OK, it's a lot more than asked for.
Don't get me wrong, it's awesome that you're trying to 'spice it up!' but with the challenges I've found it's best to just go 'vanilla' and only do what is asked.
This worked:
<!DOCTYPE html>
<html>
<head>
<title>HTML Tables Challenge</title>
</head>
<body>
<h1>HTML Tables Challenge</h1>
<!-- Write your code below -->
<table>
<thead>
<tr>
<!-- Two headers only -->
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Text 1</td>
<td>Text 2</td>
</tr>
<tr>
<td colspan="2">Spanning Text - 2 columns</td>
</tr>
</tbody>
</table>
</body>
</html>
Have a great day and happy coding.
Dave
Daniel Sanchez
Courses Plus Student 1,136 PointsAhh ok thanks for the reply. Haha I was having fun with it but yeah i'll make it vanilla next time