<td> and <th> emelents | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

<td> and <th> emelents

Is it possible to use 'th' elements instead of 'td' elements? If you wish to change text of a cell into bold, would it be a good idea to use the <th> element, or something else? Is it possible to use the 'th' element for every text in every cell in a table?

17th Apr 2018, 2:57 PM
arbaaz
1 Answer
+ 3
The th is used for table header cells. If you want to give style to your elements you should use CSS or style attribute. For example you can use <span> in <td>... </td> <span style="font-weight:bold">Your bold text</span>
17th Apr 2018, 3:03 PM
@l¡
@l¡ - avatar