HTML Table
HTML Table
TABLE
TABLE TAGS AND
ATTRIBUTES
<table> - Container tag for the entire
table.
Attributes:
border - Specifies the width of the
border around the table.
Deprecated; use CSS for styling
instead.
width - Specifies the width of the
table. Deprecated; use CSS for
styling instead.
TABLE TAGS AND
ATTRIBUTES
<tr> - used to create table row inside the <table> tag.
TABLE TAGS AND
ATTRIBUTES
<th> - used to create table header cell.
Attributes:
Colspan - Specifies the number of columns a header
cell should span.
rowspan - Specifies the number of rows a header cell
should span.
TABLE TAGS AND
ATTRIBUTES
<td> - used to create table data cell.
Attributes:
Colspan - Specifies the number of columns a data cell
should span.
rowspan - Specifies the number of rows a data cell
should span.
TABLE TAGS AND
ATTRIBUTES
<thead>, <tbody>, <tfoot>
- These tags group the
header, body, and footer
content of a table,
respectively.
CSS HTML
Example of
HTML code
creating a
table.
OUTPUT