+ 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.
12 Answers
+ 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>
+ 2
Tahir Hussain Fixed mine above.
+ 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
+ 1
Tahir Hussain Oh I misread what you said. My bad.
+ 1
Check it now. CSS can do far more than just HTML attributes can.
0
no adam in your code row 1 columns are not equally divided
0
ok HMS let me try it
0
ok can you send already adjusted codes and creat table that i described above
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?
0
sure
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>