It is possible to give heading to the table with the help of tag
Answers
Answer:
Yes dear it is possible
Explanation:
Dear Everything is possible on earth
Only there should be will to do that
Answer:
Table Header tag: -It is used to define the header cell in a table. It acts as the column or row headings. The text in this is bold and is center aligned.
As both table data tags and table heading tags have the same attributes.
The attributes of the Table Header tag are: -
a.Bg-color:-It is used to specify the background color of the table.
b.Align:-It is used to specify the position of the content in the cell.
c.Valign:-It is used to specify the vertical position of the content in the cell.
5.Colspan:-It is used to specify the no of columns the cell spans.
6.Rowspan:-It is used to specify the no of rows the cell spans.
7.Nowrap: -It is used to specify the word wrapping in a document.
For example:-
<table>
<tr>
<!-- these are all table headings-->
<th>area</th>
<th>type of house</th>
<th>rate per square feet</th>
</tr>
<tr>
<td rowspan="2">1244 sq ft</td><!-- rowspan:-It specifies the no of rows a cell should span-->
<td>flat</td>
<td>6833/sq ft</td>
</tr>
<tr>
<td>commercial shops</td>
<td>5000/sq ft</td>
</tr>
<tr>
<td rowspan="2">1931 sq ft</td>
<td>commercial shops</td>
<td>5000/sq ft</td>
</tr>
<tr>
<td>commercial office space</td>
<td>27,600/sq ft</td>
</tr>
</table>