tFoot प्रॉपर्टी

tFoot प्रॉपर्टी tfoot टेबल का रेफरेंस संग्रहीत करती है।

सिंटैक्स

javascriptटेबल.tFoot;

उदाहरण

आइए टेबल के फुटर को लाल रंग में रंगें:

html<table id="table">
  <thead>
    <tr>
      <th>header1</th>
      <th>header2</th>
      <th>header3</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>value</td>
      <td>value</td>
      <td>value</td>
    </tr>
    <tr>
      <td>value</td>
      <td>value</td>
      <td>value</td>
    </tr>
  </tbody>
  <tfoot>
    <tr>
      <td>total</td>
      <td>total</td>
      <td>total</td>
    </tr>
  </tfoot>
</table>
javascriptlet table = document.querySelector('#table');
table.tFoot.style.color = 'red';

यह भी देखें

  • tHead प्रॉपर्टी,
    जिसमें टेबल का thead होता है
  • tBodies प्रॉपर्टी,
    जिसमें टेबल का tbody होता है
  • rows प्रॉपर्टी,
    जिसमें टेबल की पंक्तियाँ होती हैं
  • cells प्रॉपर्टी,
    जिसमें टेबल की सेल होती हैं