Page 94 - CA 165 ver 1.0 Class 10
P. 94
Table without any border.
Do you know?
By default, Table does not contain any border whereas the text is arranged in tabular form.
TH (Table Heading) Tag
This tag is used to denote a cell as heading cell. Syntax to use the <TH> tag is as follows:
<TH> Text </TH>
For example:
<TH>ROLL NO</TH>
<TH>FIRST NAME</TH>
<TH>LAST NAME</TH>
To create a heading (column heading) at the top of the table, you can first create a row using the ‘TR’ tag
and then use the ‘TH’ tag to define the cell as heading instead of using the ‘TD’ tag. For example:
<TABLE BORDER= “1”>
<TR>
<TH>ROLL NO</TH>
<TH>FIRST NAME</TH>
<TH>LAST NAME</TH>
<TH>ADDRESS</TH>
</TR>
<TR>
<TH>1</TH>
<TD>ASHA</TD>
<TD>NAYER</TD>
<TD>MANGALORE</TD>
</TR>
<TR>
92 Touchpad Computer Applications-X

