Welcome to Interactive Programming Forums, where you can ask questions, receive answers from other members of the community, post code snippets and post exercies.

in html on the second exercises im struggeling to create a 2 x 4 table can some one help

+4 votes
iv tried every option help
posted 11 years ago in HTML by Matthew Tembo (6,610 points)

1 Answer

0 votes
Please note that <tr> </tr> creates a row and <td></td> creates a column.
If you need to create a 2x4(2 rows, 4 columns) table, you would need 2 <tr></tr> tags and inside of each row tag, you would need 4 <td></td> tags, agree?

The following HTML code generates 2x2 table.

<table border="1">
<tr>
<td>1 x 1</td>
<td>1 x 2</td>
</tr>
<tr>
<td>2 x 1</td>
<td>2 x 2</td>
</tr>
</table>
answered 11 years ago by codeadmin (113,880 points) 1 flag

Related questions

+20 votes
3 answers
posted 11 years ago in HTML by Abdullah Muhamed (2,500 points)
0 votes
1 answer
posted 11 years ago in HTML by Matthew Tembo (6,610 points)
+2 votes
1 answer
posted 11 years ago in HTML by Matthew Tembo (6,610 points)
+10 votes
1 answer
posted 11 years ago in HTML by Milad1991 (2,750 points)