WikiGalaxy

Personalize

HTML Tables

HTML tables are used to display data in a structured format using rows and columns. This section explains the basics of creating tables in HTML.

Basic Table Structure

An HTML table is created using the <table> tag. Rows are defined using <tr>, and cells are defined using <td> for data and <th> for headers.


<table>
  <tr>
    <th>Header 1</th>
    <th>Header 2</th>
  </tr>
  <tr>
    <td>Cell 1-1</td>
    <td>Cell 1-2</td>
  </tr>
</table>
    

You can style tables using CSS to enhance their appearance. Borders, background colors, and text alignment are commonly styled.

Header 1

Header 2

Cell 1-1

Cell 1-2

Cell 2-1

Cell 2-2

logo of wikigalaxy

Newsletter

Subscribe to our newsletter for weekly updates and promotions.

Privacy Policy

 • 

Terms of Service

Copyright © WikiGalaxy 2025