Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Tables Table Basics Create a Table

Ricard Taujenis
Ricard Taujenis
4,383 Points

have an issue with task 3 of 4 HTML tables i have added 2 td in 4 tr still dosnt work?

it seems i followed the course and i did some basic stuff previously thatch why im confused

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>HTML Tables</title>
  </head>
  <body>
    <table>
      <tr>1</tr>
      <td>0</td>
      <td>0</td>
      <tr>1</tr>
      <td>0</td>
      <td>0</td>
      <tr>1</tr>
      <td>0</td>
      <td>0</td>
      <tr>1</tr>
      <td>0</td>
      <td>0</td>
</table>
  </body>
</html>

2 Answers

andi mitre
STAFF
andi mitre
Treehouse Guest Teacher

Hey Ricard..you are closing your table rows before adding the table cells..so your table cells fall outside the row. See below:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>HTML Tables</title>
  </head>
  <body>
     <table>
      <tr>
        <td></td>
        <td></td>
      </tr>
      <tr>
       <td></td>
       <td></td>
      </tr>
      <tr>
        <td></td>
        <td></td>
      </tr>
      <tr>
       <td></td>
       <td></td>
      </tr>
    </table>
  </body>
</html>

Cheers, Andi

andi mitre
andi mitre
Treehouse Guest Teacher

select as best answer if that was helpful :)