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

Related Posts :

  • a a The HTML <a> element is used to create navigation links to different pages in your… Read More...
  • abbr abbr The HTML <abbr> abbreviation element is used to wrap characters that make up an… Read More...
  • comment comment Using the HTML <!-- --> comment element we can place comments into our source … Read More...
  • area area The HTML <area> element is usually used within a banner or image mapping scenar… Read More...
  • address address The HTML <address> element is used to display contact information. HTML COD… Read More...

0 Response to "th"

Post a Comment