+ 1

What is this. <tr>, <td>, <th> in html?

<table> <tr> <th>Day</th> <th>Mon</th> <th>Tue</th> <th>Wed</th> <th>Thu</th> <th>Fri</th> </tr> <tr> <td>8-8:30</td> <td class="selected">Learn</td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td>9-10</td> <td></td> <td class="selected">Practice</td> <td></td> <td></td> <td></td> </tr> <tr> <td>1-1:30</td> <td></td> <td></td> <td class="selected">Play</td> <td></td> <td></td> </tr>

3rd Jan 2019, 3:31 PM
V Chandu
V Chandu - avatar
4 Antworten
+ 3
tr = row of the table td = table data th = table heading These elements create a table.
3rd Jan 2019, 8:33 PM
JTLZ
+ 1
Hey there, <tr> = table row: Groups together all elements to go into a single row of the table <th> = table header: Holds the headline for a single column of the table. Needs to be located in between <tr>-elements. Most of the time <th>-elements go into the first row of the table, as they make up the entire headlines, as seen in your example. <td> = table data Holds a single data-field inside the table. Also has to go between <tr>-tags and is mostly used starting from the second row onwards. Hope that helps a bit :-)
3rd Jan 2019, 3:48 PM
Code Artist
Code Artist - avatar
+ 1
Tan q bro
3rd Jan 2019, 3:49 PM
V Chandu
V Chandu - avatar