Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> HTML >> Snippet

Basic tables (2x2)


<!-- plain table -->
< table r >
< tr >< td > one < td > two
< tr >< td > dog < td > cat
</ table >

<!-- table with borders -->
< table r >
< tr >< td > one < td > two
< tr >< td > dog < td > cat
</ table >

<!-- table with headers -->
< table >
< tr >< th > Header1 < th > Header2
< tr >< td > one < td > two
< tr >< td > dog < td > cat
</ table >

<!-- table with captions -->
< table >
< caption > Title for the Table </ caption?
< tr >< th > Header1 < th > Header2
< tr >< td nowrap valign =top colspan = 3 rowspan = 2 >
</ table >

<!-- table with minimum spacings -->
< table cellspacing = 0 cellpadding = 0 border >
< tr >< td > one < td > two
< tr >< td > dog < td > cat
</ table >