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

HTML HTML Tables HTML Tables

Prasad Devaraj
Prasad Devaraj
2,397 Points

Try adding table heading tag inside of the table

Here is my code,

<table> <tr> <th></th> </tr> </table>

I'm not able to figure out wat's wrong here. Please help !

Prasad Devaraj
Prasad Devaraj
2,397 Points

I don't know why the code is not displayed here. Trying again, "< table> < tr> < th>< /th> < /tr> < /table>"

2 Answers

Maybe try this?

<table>
 <thead>
  <tr>
     <th>Header 1</th>
     <th>Header 2</th>
  </tr>
 </thead>
</table>
Joseph Alejandro
Joseph Alejandro
1,428 Points

you need to leave a blank line after the three backticks (```) so that the code display correctly. Like this.

<table>
  <thead>
    <tr>
      <th>Header 1</th>
      <th>Header 2</th>
      <th>Header 3</th>
    <tr>
  </thead>
  <tbody>
    <tr>
      <td>Data</td>
    </tr>
  </tbody>
</table>