Html 5 Table Tag

In the html5 <table> tag is used to identify HTML table. Which tag includes one or more <th>,<tr> and <td> tag .<th> tag describe table header, <tr> tag describe table row and <td> tag describe table data. In the more big html table are includes <col />, <caption>, <colgroup>, <tfoot>, <thead> and <tbody>.

Syntax:

<table>
  ---
</table>

Example Code

<table>
  <tr>
    <th> Car Name </th>
    <th> Price </th>
  </tr>
  <tr>
    <td>Alliance</td>
    <td>23,00,000</td>
  </tr>
</table>

Out Put:



Car Name Price
Alliance 23,00,000

In the above example <table> tag has been added to Car Price.





Content