th

th
HTML th Element
The HTML <th> table header cell element is used to render a cell in a table row <tr> that can hold influence over other cells in the table. It also visually represents the data with a heading type format automatically(centers and bolds the text).

HTML CODE EXAMPLE
<table border="1" style="width:300px;">
  <thead>
    <tr>
      <th id="hc1">Member</th>
      <th id="hc2">Country</th>
      <th id="hc3">Age</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td headers="hc1">John</td>
      <td headers="hc2">USA</td>
      <td headers="hc3">23</td>
    </tr>
    <tr>
      <td headers="hc1">Robert</td>
      <td headers="hc2">Spain</td>
      <td headers="hc3">48</td>
    </tr>
  </tbody>
</table>
 
MemberCountryAge
JohnUSA23
RobertSpain48

0 Response to "th"

Post a Comment