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 trialJin Woo Moraes
Courses Plus Student 1,623 PointsHtml Troubles - colspan tag
Here is what I have for this code challenge:
<!DOCTYPE html> <html> <head> <title>HTML Tables Challenge</title> </head> <body> <h1>HTML Tables Challenge</h1>
<!-- Write your code below -->
<table border="1">
<thead>
<tr>
<th>ghg</th>
<th>jhhi</th>
</tr>
<td colspan="2"> Text Inside </td>
</thead>
<tbody>
<tr>
<td>jiji</td>
<td>hokkj</td>
</tr>
</thead>
</table>
</table>
</body> </html> <
<!-- I dont know what I got wrong -->
1 Answer
nvcxnvkldsjaklfds
Courses Plus Student 5,041 PointsYou should add table cell that spans two columns underneath table row element inside table body element.
Please check my code below.
<!DOCTYPE html>
<html>
<head>
<title>HTML Tables Challenge</title>
</head>
<body>
<h1>HTML Tables Challenge</h1>
<table>
<thead>
<tr>
<th>Country</th>
<th>Capital</th>
</tr>
</thead>
<tbody>
<tr>
<td>India</td>
<td>New Delhi</td>
</tr>
<tr >
<td colspan="2">Countries and capital table.</td>
</tr>
</tbody>
</table>
</body>
</html>
I hope it helps.