+ 1
Why?
Why are there 2 rows? (Sorry, thought this question would pop up on the problem) When making tables, the table comes out with two horizontal rows.
5 Respuestas
+ 3
You can specify as many rows as you want to. That's just the example they chose. Take a look at the example below:
<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
How many table rows do you see above?
+ 1
2 but,
<table border="2">
<tr>
<td>Red</td>
<td>Blue</td>
<td>Green</td>
</tr>
<tr>
<td><br /></td>
<td colspan="2"><br /></td>
</tr>
</table>
This has 2 rows.
+ 1
Ah I see. You notice it says <table border="2"> - That means it has a border, with a width of either two points or pixels, depending on your system. That number has nothing to do with the amount of columns or rows. Cheers.
0
<tr> means a table row
you have 2 <tr> thats why you have 2 rows
0
Ah I see. You notice it says <table border="2"> - That means it has a border, with a width of either two points or pixels, depending on your system. That number has nothing to do with the amount of columns or rows. Cheers.