Table | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Table

What are the differences between <td> and <th>??

7th Apr 2018, 4:44 AM
Yiwen Zhao
Yiwen Zhao  - avatar
2 Answers
+ 9
<th> is for the column header. <td> contains data below the header.
7th Apr 2018, 5:15 AM
David Carroll
David Carroll - avatar
+ 1
basically <td> fullform says itself it is "table data" and <th> is "table header". So <td> is data of the table and <th> is heading of column.
7th Apr 2018, 6:43 AM
Abhishek Rawat
Abhishek Rawat - avatar