can be used to define a title for the entire table.
HTML tables also support merging cells, spanning rows/columns, and the application of other styles and attributes to meet various needs.
We can also use CSS to further customize the style and appearance of the table.
Online example
Example
<
h4
One column:
h4
<table border="1">
<tr>
<td100 td tr table>
<h4>
One row with three columns:
h4
<
table
border
=
"
1
"
<
tr
<
td
100
td
<
td
200
td
<
td
300
td
tr
table
<
h4
Two rows with three columns:
h4
<
table
border
=
"
1
"
<
tr
<
td
100
td
<
td
200
td
<
td
300
td
tr
<
tr
<
td
400
td
<
td
500
td
<
td
600
td
tr
table
Try it »
(More examples can be found at the bottom of this page.)
Table example
Example
<table border="1">
<tr>
<td>
row 1, cell 1
td
<
td
row 1, cell 2
td
tr
<
tr
<
td
row 2, cell 1
td
<
td
row 2, cell 2
td
tr
table
Displayed in the browser as follows::

HTML Tables and Border Attributes
If the border attribute is not defined, the table will not display a border. Sometimes this is useful, but most of the time, we want to display a border.
Use the border attribute to display a table with a border:
Example
<table border="1">
<tr>
<td>
Row 1, cell 1
td
<
td
Row 1, cell 2
td
tr
table
HTML Table Headers
The table header is defined using the