+ 3

Html table

how to make a table by html which has two rows .first row contain two column 2nd row contain 3 column .1st two columns should be divided eqally in two parts as well as 2nd three columns should be divided into three equal parts.

30th Apr 2018, 3:02 AM
[No Name]
[No Name] - avatar
12 Réponses
+ 2
<!DOCTYPE html> <html> <head> <title>Title</title> </head> <body> <table> <tr> <td colspan="3"></br></td> <td colspan="3"></br></td> </tr> <tr> <td colspan="2"></br></td> <td colspan="2"></br></td> <td colspan="2"></br></td> </tr> </table> </body> </html>
30th Apr 2018, 3:55 AM
HMS
HMS - avatar
+ 2
Tahir Hussain Fixed mine above.
30th Apr 2018, 4:12 AM
Adam
Adam - avatar
+ 1
I just tried my own code and it didn't work until i made some adjustments to the table's attributes. Like this : <table border="1" cellspacing="2" cellpadding="50"> You may want to adjust them to your own choice too
30th Apr 2018, 4:03 AM
HMS
HMS - avatar
+ 1
Tahir Hussain Oh I misread what you said. My bad.
30th Apr 2018, 4:07 AM
Adam
Adam - avatar
+ 1
Check it now. CSS can do far more than just HTML attributes can.
30th Apr 2018, 4:44 AM
Adam
Adam - avatar
0
no adam in your code row 1 columns are not equally divided
30th Apr 2018, 3:44 AM
[No Name]
[No Name] - avatar
0
ok HMS let me try it
30th Apr 2018, 3:56 AM
[No Name]
[No Name] - avatar
0
ok can you send already adjusted codes and creat table that i described above
30th Apr 2018, 4:09 AM
[No Name]
[No Name] - avatar
0
thank you dear Adam you did it great. you also used css codes i think is it possible to do the same thing just using html codes?
30th Apr 2018, 4:26 AM
[No Name]
[No Name] - avatar
0
sure
30th Apr 2018, 4:46 AM
[No Name]
[No Name] - avatar
0
Actually very easy just use these tags <th> is for table Heading <tr> is for table row <td> is for table data Here is an example <html> <head> <title> Tables in html </title> </head> <body> <table> <tr> <th> Name </th> <th> Std </th> <th> Div </th> </tr> <tr> <td> Alyne </td> <td> 6th </td> <td> G </td> </tr> </body> </html>
2nd Apr 2023, 4:21 PM
Kalpana Patil
Kalpana Patil - avatar