Html program
Rowspan and colspan
Answers
Answered by
0
Answer:
BASED ON THE REQUIRED ROWS AND COLUMNS THE HTML CODE WILL DIFFER.
example program:
<html>
<head>
<title>COLSPAN AND ROWSPAN</title>
</head>
<body>
<table border="1"px>
<tr>
<th rowspan ="2">NAME</th>
<th colspan="2">PHY</th>
<th colspan ="2">COMP</th>
</tr>
<tr>
<th>PRACTICAL-MARKS</th>
<th>THEORY-MARKS</th>
<th>PRACTICAL-MARKS</th>
<th>THEORY-MARKS</th>
</tr>
<tr>
<td>RAM</td>
<td>78</td>
<td>90</td>
<td>68</td>
<td>38</td>
</tr>
</table>
</body>
</html>
Explanation:
THERE ARE THREE IMPORTANT TAGS FOR ROW SPAN AND COLUMN SPAN. WE SHOULD NOT GET CONFUSED BY THESE TWO.
THE THREE MAIN TAGS ARE:
<tr>=row
<th>=heading
<td>=data
Similar questions
History,
5 months ago
Chemistry,
10 months ago
Math,
10 months ago
Science,
1 year ago
Computer Science,
1 year ago