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 Structuring Tables Add the Table Footer Element

E Mula
E Mula
5,081 Points

Inside the table footer, add a colspan attribute to the table cell so that it spans the width of the table.

need some help on where to insert the colspan attribute to the table cell . it keep saying its wrong

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

      <tfooter>
    <table>
      <tfooter>
      <thead>
        <tr>
          <th scope="col">Name</th>
          <th scope="col">Job</th>
        </tr>
      </thead>
      <tbody>
        <tfoot>
        <tr>
          <td>Nick</td>
          <td>Designer</td>
        </tr>
        <tr>
          <td>Andrew</td>
          <td>Developer</td>
        </tr>
        <tr>
          <td>Dave</td>
          <td>Developer</td>
          <tfoot>
        </tr>
       <tr>
      <td colspan="0">Data is updated every 15 minutes.</td>          
      </tr>       
      <tfooter>      

    </table>

  </body>
</html>

2 Answers

Steven Parker
Steven Parker
220,925 Points

To span the entire table, the element must cover 2 columns, but the value shown is 0.

There are some other issues as well that might interfere with completing the challenge:

  • there are several stray"<tfooter>" start tags (which is not a valid tag type)
  • there is no ending "</tfoot>" tag to go with the start tag
  • the table footer is overlapping an existing row
E Mula
E Mula
5,081 Points

thanks !