- In table heading we give a heading of table.
- In col span we give a heading of column.
- In row span we are give a heading of rows.
Syntax:-
<th>speed </th> //This is a table heading.
<th colspan=”2″> My bike speed </th> //This is for col span.
<td rowspan=”3″>10% discount for all Indian </td> //This is for row span.
Example:-
<html>
<head>
<title>CastorClasses.com </title>
</head>
<body>
<tr>
<th> Sr.no. </th>
<th> speed </th>
<th> age </th>
</tr>
<table border="1″>
<tr>
<th col span="2″>my internet plans </th>
<td rowspan="3″> 10% for discount </td>
</body>
</html>
0 Comments:
Post a Comment