+ 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.

17th Oct 2018, 12:16 AM
The Quarkscrew
The Quarkscrew - avatar
5 Respostas
+ 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?
17th Oct 2018, 12:57 AM
Tony
Tony - avatar
+ 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.
17th Oct 2018, 1:55 AM
The Quarkscrew
The Quarkscrew - avatar
+ 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.
17th Oct 2018, 5:16 AM
Tony
Tony - avatar
0
<tr> means a table row you have 2 <tr> thats why you have 2 rows
17th Oct 2018, 2:04 AM
Taste
Taste - avatar
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.
17th Oct 2018, 5:15 AM
Tony
Tony - avatar