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 trialNick Ackerson
704 Pointscreating another table row with a cell that spans 2 columns
Challenge 8 of 8 for Tables HTML. How do i create a table row that goes in 2 columns
1 Answer
Muhammad Mohsen
Courses Plus Student 10,843 PointsHi Nick,
You can create a table row that goes in 2 columns by using colspan attribute
<!-- Two columns -->
<td colspan="2">TWO COLUMNS</td>
<!-- Three columns -->
<td colspan="3">THREE COLUMNS</td>
<!-- Four columns -->
<td colspan="4">FOUR COLUMNS</td>
and so on