Welcome to the Treehouse Community
Looking to learn something new?
Im trying to make a table with a table header and table body
I would like something like this
Header 1 Header 2 Header 3 Something Something Something Something Something New Something New something New Sm New Sm
Im having a very hard time figuring out how to put multiple rows for one column, like I have 4 "somethings " for the first "something" on the left?
I hope i make sense?
Any help would be great
Hardeep SidhuCourses Plus Student 6,908 Points
Hi Khader hope this helps,
think of it like this, a table has a row <tr> and inside that row you place table data <td> for that ROW so you have 3 headings that would come under ONE table row like this:
<tr> <td>heading one</td> <td>heading two</td> <td>heading three</td> </tr>
then you work yourself along this order, so you want to place something into heading one column all you have to do is follow the same order you placed the headings in so:
<tr> <td>heading one column data</td> <td> heading two colmun data </td>
and so on.... closing the table row </tr> at the end.
then just wrap it all up in <table> tags :
hope that made sense haha