Basic Table Structure
The basic structure of an HTML table consists of the <table>
element, which contains rows (<tr>
elements), and each row contains cells (<td>
elements for data cells or <th>
elements for header cells).
Here’s a simple example of a table with three rows and three columns:
HTML
< table > < tr > < th >Header 1</ th > < th >Header 2</ th > < th >Header 3</ th > </ tr > < tr > < td >Data 1</ td > < td >Data 2</ td > < td >Data 3</ td > </ tr > < tr > < td >Data 4</ td > < td >Data 5</ td > < td >Data 6</ td > </ tr > </ table > |
How to Create Table in HTML with Border without CSS ?
Creating a table in HTML is a fundamental skill for web developers. Tables are used to organize data in a grid-like structure, making it easier to read and understand. In this article, we will learn how to create a simple table in HTML with borders, without using CSS styling.