0% found this document useful (0 votes)
20 views8 pages

HTML Table

The document discusses the tags and attributes used to create HTML tables, including <table>, <tr>, <th>, <td>, <thead>, <tbody>, and <tfoot>. It describes how <table> contains the entire table, <tr> creates rows, <th> creates header cells, <td> creates data cells, and <thead>, <tbody>, <tfoot> group header, body, and footer content. It also notes that the border and width attributes of <table> are deprecated and styling should instead use CSS.

Uploaded by

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

HTML Table

The document discusses the tags and attributes used to create HTML tables, including <table>, <tr>, <th>, <td>, <thead>, <tbody>, and <tfoot>. It describes how <table> contains the entire table, <tr> creates rows, <th> creates header cells, <td> creates data cells, and <thead>, <tbody>, <tfoot> group header, body, and footer content. It also notes that the border and width attributes of <table> are deprecated and styling should instead use CSS.

Uploaded by

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

CREATING

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

You might also like