Home > HTML Tags > Tables >
     
HTML Tags
Tables

Tables are defined with a pair of tags: <TABLE></TABLE>. Rows are defined with the TR tag and cells with the TD tag. Other tags are explained in a tables tutorial at Table Tutor.

The table below is produced by the HTML code that follows:

Column 1 Column 2
Item 1A Item 2A
Item 1B Item 2B

<TABLE BORDER COLS=2 WIDTH="50%" BORDER=1>

<TR>

<TD><B>Column 1</B></TD>

<TD><B>Column 2</B></TD>

</TR>

<TR>

<TD>Item 1A</TD>

<TD>Item 2A</TD>

</TR>

<TR>

<TD>Item 1B</TD>

<TD>Item 2B</TD>

</TR>

</TABLE>



Copyright © 1995-2010, Pearson Education, Inc., publishing as Pearson Longman Legal and Privacy Terms