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 trialOwen McFadzen
5,718 PointsAdding table header in Challenge task not working
I am doing the table html challenge and the cod, bellow, is not being accepted. I was unsure if what I was doing was incorrect so I even copied the code from the video, still didn't work.
<!DOCTYPE html>
<html>
<head>
<title>HTML Tables Challenge</title>
</head>
<body>
<h1>HTML Tables Challenge</h1>
<table border ="1">
<tr>
<th>Fruites</th>
</tr>
<tr>
<td>Oranges</td>
</tr>
<tr>
<td>Apples</td>
</tr>
</table>
</body>
</html>
1 Answer
Owen McFadzen
5,718 PointsSo I cam to the answer to my own question after a little bit off googleing. The exercise asks for a header, but this could either be <th> or <thead>. The answer is <thead>.
<table border ="1">
<thead>
<tr>
<th>Fruites</th>
</tr>
</thead>
<tr>
<td>Oranges</td>
</tr>
<tr>
<td>Apples</td>
</tr>
</table>