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

Task 3 of 4 : Add two table cells inside each table row without filling in any data.

I was doing this task and it gave me a hint to include the 2 <td> inside the 4 <tr> which I did. It was pretty much the same task as Task #4 except it asked for 4 <td> in the 4 <tr>. I was able to pass that task, but I was unable to pass Task 3. I do not know what I am doing wrong. Please help me.

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

      <table>
      <tr>
        <td>Name</td>
        <td>E-mail</td>
        <td>Job Role</td>
        <td></td>
        <td></td>
      </tr>
       <tr>
        <td>Nick Pettit</td>
        <td>nick@example.com</td>
        <td>Web Designer</td>
        <td></td>
        <td></td>
      </tr>
         <tr>
        <td>Andrew Chalkley</td>
        <td>andrew@example.com</td>
        <td>Front-End Developer</td>
        <td></td>
        <td></td>
      </tr>
         <tr>
        <td>Dave McFarland</td>
        <td>dave@example.com</td>
        <td>Front-End Developer</td>
        <td></td>
        <td></td>
      </tr>
    </table>

  </body>
</html>

2 Answers

Rasbin Rijal
PLUS
Rasbin Rijal
Courses Plus Student 10,864 Points

Hello Zachary, you are doing great. The instruction says to add only 2 table cells inside the table rows. I see you have created 5 table cells which are the td tags. Now, you just have to remove 3 table cells from each table rows. You can see the code below where in the first row, there should had to be two table cells Name and Job according to the instruction. Now, you can fill with any word that you like in the rest of the td tags. Good luck with your studies. :)

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

      <table>
      <tr>
        <td>Name</td>
        <td>Job</td>
      </tr>
       <tr>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td></td>
        <td></td>
      </tr>
    </table>

  </body>
</html>
Per Karlsson
Per Karlsson
12,683 Points

Hi Zachary,

Try this instead

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>HTML Tables</title>
  </head>
  <body>
    <table>
      <tr>
        <td>Name</td>
        <td>Job</td>        
      </tr>
      <tr>
        <td>Elsa</td>
        <td>Ice Queen</td>
      </tr>
      <tr>
        <td>Sven</td>
        <td>Reindeer</td>
      </tr>
      <tr>
        <td>Olaf</td>
        <td>Snowman</td>
      </tr>
    </table>
  </body>
</html>