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 Structuring Tables The Table Foot Element

Why not use colspan="0"?

In the documentation it looked like it said that this would automatically fit to the number of columns. Not an issue for this demo, but maybe a better choice for larger tables?

2 Answers

Santiago Posada
Santiago Posada
5,189 Points

Hi Jen I got this from MDN th as search in Google:

"colspan : This attribute contains a non-negative integer value that indicates on how many columns does the cell extend. Its default value is 1; if its value is set to 0, it does extend until the end of the <colgroup>, eventually implicitly defined, the cell belongs to. Values higher than 1000 are clipped down to 1000."

So it will be set up by default to 1 column, Hope this helps

From W3C:

"Note: Only Firefox supports colspan="0", which has a special meaning... tells the browser to span the cell to the last column of the column group."