Interactive Programming Forums
Login
Register
Home
Questions/Snippets/Exercises
Unanswered
Tags
Ask a Question
Post a Code Snippet
Post an Exercise
Welcome to Interactive Programming Forums, where you can ask questions, receive answers from other members of the community, post code snippets and post exercies.
All categories
Ruby
(3)
Python
(10)
PHP
(7)
Perl
(2)
SQL
(8)
Javascript
(6)
HTML
(20)
CSS
(4)
jQuery
(0)
XML
(3)
Code Snippets
(1)
Exercises
(4)
Other
(9)
How to create a 5x4 (5 rows, 4 columns) table with one of rows having a column span set to 4 (colspan="4")?
+3
votes
<html>
<head>
<title></title>
</head>
<body>
<table border="1">
<tr>
<td rowspan="2">row span(1x1, 2x1)</td>
<td rowspan="2">row span(2x1, 3x1)</td>
<td rowspan="2">row span(3x1, 4x1)</td>
<td rowspan="2">row span(4x1, 5x1)</td>
<td rowspan="2">row span(5x1, 6x1)</td>
</tr>
<tr>
<td colspan="4">column span(1x1, 2x1)</td>
</tr>
<tr>
<td colspan="4">column span(2x1, 3x1)</td>
</tr>
<tr>
<td colspan="4">column span(3x1, 4x1)</td>
</tr>
<tr>
<td colspan="4">column span(4x1, 5x1)</td>
</tr>
<table>
</body>
</html>
I also try it upside down, the above. Please help.
posted
12 years
ago
in
HTML
by
yende
(
9,130
points)
edited
12 years
ago
by
yende
1 Answer
0
votes
Hello yende,
<html>
<head>
<title></title>
</head>
<body>
<table border="1">
<tr>
<td> Column # 1 <br /> Row # 1 </td>
<td> Column # 2 </td>
<td> Column # 3 </td>
<td> Column # 4 </td>
</tr>
<tr>
<td> Row # 2 </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> Row # 3 </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> Row # 4 </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="4"> Row # 5 </td>
</tr>
</table>
</body>
</html>
answered
11 years
ago
by
vlad36
(
7,400
points)
Related questions
+4
votes
1
answer
in html on the second exercises im struggeling to create a 2 x 4 table can some one help
posted
12 years
ago
in
HTML
by
Matthew Tembo
(
6,610
points)
+18
votes
1
answer
when your done with the course how do you create a website
posted
12 years
ago
in
PHP
by
Matthew Tembo
(
6,610
points)
+1
vote
1
answer
How to insert a record into 'employees' table?
posted
12 years
ago
in
SQL
by
yende
(
9,130
points)
+11
votes
1
answer
How to understand easily the terms of your exercises as a new student who had not such kind of knowledge before?
posted
12 years
ago
in
Exercises
by
chanmg84
(
1,860
points)
programming-code
programming
html
php
–2
votes
1
answer
I am have a problem with understanding a while loop, how to terminate it?
posted
12 years
ago
in
Python
by
simphiwemakola12
(
1,010
points)