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 2,exercise 5 i have problem please F1

+10 votes
i want to make a table but compiler shows me a error message,

my code:

<html>
<head>
<title></title>
</head>
<body>
<table border="1">
<tr>
<td colspan="4">cell 1x1</td><td>cell 1x2</td><td>cell 1x3</td><td>cell 1x4</td>
</tr>
<tr>
<td>cell 2x1</td><td>cell 2x2</td><td>cell 2x3</td><td>cell 2x4</td>
</tr>
<tr>
<td>cell 3x1</td><td>cell 3x2</td><td>cell 3x3</td><td>cell 3x4</td>
</tr>
<tr>
<td>cell 4x1</td><td>cell 4x2</td><td>cell 4x3</td><td>cell 4x4</td>
</tr>
<tr>
<td>cell 5x1</td><td>cell 5x2</td><td>cell 5x3</td><td>cell 5x4</td>
</tr>
</table>
</body>
</html>
posted 4 years ago in HTML by Milad1991 (2,750 points)

1 Answer

+4 votes
Does the above html code generate a 5x4 table?
Please take a look at the example code for the exercise and correct your code.

Hint:
<tr>
<td colspan="4">cell 1x1</td><td>cell 1x2</td><td>cell 1x3</td><td>cell 1x4</td>
</tr>
answered 4 years ago by codeadmin (113,880 points)

Related questions

+2 votes
1 answer
posted 4 years ago in HTML by waseem.shah20 (1,350 points)
+2 votes
1 answer
posted 4 years ago in HTML by Matthew Tembo (6,610 points)
0 votes
0 answers
posted 2 years ago in HTML by sdubois (8,090 points)
+10 votes
1 answer
posted 4 years ago in HTML by Sigurður Jónsson (6,630 points)
+17 votes
1 answer
posted 4 years ago in HTML by team.kurt1 (1,120 points)