+ 4
What is the difference between <td> and <th> tag in table tags?
3 Antworten
+ 22
In table tags -
<th>tag :defines a table cell that contains a heading .
<td>tag:defines a table cell that contains data .
+ 5
There is very little difference between <td> and <th> tag
<td> tag is used to assign data(can be of any type)
<th> tag is used to assign heading for your table column
Also the data written in <th> tag is shown as bold while viewing the page
+ 1
RICHA 🇮🇳 <td> is table data
<th> is table heading
That is easy to remember
Only pay attantion 1-letter
Thanks