0% found this document useful (0 votes)
15 views6 pages

Introduction To Tables

The document provides an introduction to HTML tables, including the basic structure and syntax for creating tables with headers and data. It includes sample code demonstrating a simple table and a nested table example. Additionally, there is an exercise section at the end for practice.

Uploaded by

GeethaRaju1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views6 pages

Introduction To Tables

The document provides an introduction to HTML tables, including the basic structure and syntax for creating tables with headers and data. It includes sample code demonstrating a simple table and a nested table example. Additionally, there is an exercise section at the end for practice.

Uploaded by

GeethaRaju1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 6

INTRODUCTION

TO TABLES
EXERCISE FOR HTML
Tables

<table>
<tr> <!-- Row -->
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
</table>
Sample Code
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
<th>City</th>
</tr>
<tr>
<td>John</td>
<td>25</td>
<td>New York</td>
</tr>
<tr>
<td>Lisa</td>
<td>22</td>
<td>Los Angeles</td>
</tr>
</table>
<table border="1">
Nested Tables <tr>
<th>Category</th>
 Definition: It is a table inside a table <th>Details</th>
</tr>
<tr>
<td>Fruits</td>
<td>
<table border="1">
<tr>
<td>Apple</td>
</tr>
<tr>
<td>Banana</td>
</tr>
</table>
</td>
</tr>
</table>
Exercise

You might also like