HTML Table Codes

You can make the table that you want by filling in the table as you wish.

<table>

  <tr>
    <th>Continent</th>
    <th>State</th>
    <th>City</th>
  </tr>
  <tr>
    <td>Europe</td>
    <td>Germany</td>
    <td>Hamburg</td>
  </tr>
  <tr>
    <td>Asia</td>
    <td>China</td>
    <td>Beijing</td>
  </tr>
</table>

Continent State City
Europe Germany Hamburg
Asia China Beijing


Common HTML Table tags


  • <tr> - represents rows
  • <td> - used to create data cells
  • <th> - used to add table headings
  • <caption> - used to insert captions
  • <thead> - adds a separate header to the table
  • <tbody> - shows the main body of the table
  • <tfoot> - creates a separate footer for the table

Comments

Popular posts from this blog

Kotlin Math Operations and Functions Overview

Kotlin Strings: Features and Operations Guide

Kotlin Android Program (QCR) Application Codes That Read Text in Photos