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 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 :)