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 trial
Matt Bloomer
10,608 Pointstable
I am trying to put a table in the body of the page, but all it comes up with is the table headings and not the table itself; what am I doing wrong? When I look at the JavaScript console, all it says failed to load resource, 404, file not found. Can someone run me over what I need to do to actually get the table to appear? Here is the code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Matt Bloomer| Designer</title>
</head>
<body>
<header>
<h1>Matt Bloomer</h1>
<h2>A great person! </h2>
</a>
<nav>
<ul>
<li><a href="index.html">intelligence</a></li>
<li><a href="about.html">kind</a></li>
<li><a href="hooka.html">funny</a></li>
</ul>
</nav>
</header>
<section>
<p>This is my first website; I hope you like it.
</p>
</section>
<table>
<caption>My Life</caption>
<thead>
<tr>
<th scope="col">Year</th>
<th scope="col">Location</th>
<th scope="col">Girlfriend</th>
<th scope="col">Scool/Job</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="3">Strikes and gutters.</td>
</tr>
</tfoot>
</table>
</body>
<footer>
<p>© 2015 Matt Bloomer.</p>
</footer>
</html>
</body>
</html>
2 Answers
Rich Bagley
25,869 PointsHi Matt,
You look to be missing the tbody section of the table. If you view the link it will include code samples for how to format this.
On a side note, I've also just wrapped the code in your question with markdown and you look to have some duplicate tags / tags in the wrong location, for example:
<footer>
<p>© 2015 Matt Bloomer.</p>
</footer>
should be before:
</body>
You also then don't need the second set of:
</body>
</html>
Hope that helps :)
-Rich
Matt Bloomer
10,608 PointsThanks.
Rich Bagley
25,869 PointsNo problem :)