How to make a table in html so that the first row is divided into columns, and the second is not?
|
3 answers
<table> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> </tr> <tr> <td colspan="4">LOOONG</td> </tr> </table>
Example:
one | 2 | 3 | four |
LOOONG |
|
Properties rowspan , colspan to help you! rowspan -> vertical, colspan -> horizontal.
<table border="1"> <tr> <td rowspan="3">1</td> <td colspan="2">2</td> <td>3</td> <td>4</td> </tr> <tr> <td>5</td> <td>6</td> <td>7</td> <td>9</td> </tr> <tr> <td colspan="4">7</td> </tr> </table>
one | 2 | 3 | four | |
five | 6 | 7 | 9 | |
7 |
|
And you can not bother and read it all here .
|