❐HTML❐

❐wD Learn

HTML

HTML Introduction

HTML Element

HTML Attributes

HTML Heading

HTML Paragraph

HTML Style

HTML Format

HTML Color

HTML Link

HTML Image

HTML Table

HTML List

HTML Symbols

HTML Emojis

HTML Forms

HTML Tables
HTML tables allow web developers to arrange data into rows and columns.

Example


<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Hello</td>
<td>Sunder</td>
<td>Russia</td>
</tr>
<tr>
<td>Bengluru</td>
<td>Kolkata</td>
<td>Mumbai</td> </tr>
</table>
Table Rows Each table row starts with a <tr> and ends with a </tr> tag.

Example


<table>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td> </tr>
</table>
Table Headers
Sometimes you want your cells to be table header cells. In those cases use the <th> tag instead of the <td> tag:

Example


<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Hello</td>
<td>Sunder</td>
<td>Russia</td>
</tr>
</table>
Table Cells
Each table cell is defined by a <td> and a </td> tag.

Example


<table>
<tr>
<td>Hello</td>
<td>Sunder</td>
<td>Russia</td>
</tr>
</table>