Example HTML Table Row 1, cell 1 | Row 1, cell 2 |
Each table starts with a table tag.
Each table row starts with a tr tag.
Each table data starts with a td tag.
One column:
One row and three columns:
Two rows and three columns:
Example HTML Table BorderWith a normal border:
With a thick border:
With a very thick border:
Example HTML Border StyleMadtrix.yn.lt
Example HTML Table Without BorderThis table has no borders:
And this table has no borders:
Example HTML Table HeaderTable headers:
Name |
Telephone |
Telephone |
Bill Gates |
555 77 854 |
555 77 855 |
Vertical headers:
First Name: |
Bill Gates |
Telephone: |
555 77 854 |
Telephone: |
555 77 855 |
Example HTML Table Caption
Monthly savings
Month |
Savings |
January |
$100 |
February |
$50 |
Example HTML Cell SpanCell that spans two columns:
Name |
Telephone |
Bill Gates |
555 77 854 |
555 77 855 |
Cell that spans two rows:
First Name: |
Bill Gates |
Telephone: |
555 77 854 |
555 77 855 |
Example HTML Tags Inside a Table
This is a paragraph
This is another paragraph
|
This cell contains a table:
|
This cell contains a list
- apples
- bananas
- pineapples
|
HELLO |
Example HTML Cell PaddingWithout cellpadding:
With cellpadding:
Example HTML Cell SpacingWithout cellspacing:
With cellspacing:
» Lanjutkan Ke Tutorial Selanjutnya