Computer Science, asked by rishitaaryan6287, 9 months ago

Html program
Rowspan and colspan

Answers

Answered by subbpavar
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