i find no difference in using
Please explain.
i find no difference in using
The
Hi @vakadavamsi,
<th>
tag is used for the header cell (Table heading) while <td>
tag is used for showing the table data.
For example
hi @vakadavamsi,
The basic difference between the tags < th > and < td > is that,
The tag < th > is used to indicate the table heading, which is given, as an informative detail about the table being designed.
Example in the given picture the “Name” is the < th >, i.e it is the heading of the entries to be made under it.
However the tag < td > represents the data filled in the rows. Example the various names and age given under the “Name” and “Age” headings.
Hope your query/doubt is resolved.
td refers to table data and th refers to table heading
The text in
“td” tag is used for the data to be inserted in the cell. whereas “th” is used to give the column attribute (or heading of the column). Eg: “NAME” is the table head (th) and “John” , “Harry” etc. will be the data (td) of that column.