HTML (XHTML) Table Tutorials

Tables are meant to present data in rows and columns.

The starting <table> and ending </table> tags define a table.

The starting <tr> and ending </tr> tags define a table row and are nested within the <table> tags.

The starting <td> and ending </td> tags define data cells and are nested within <tr> tags.

The code below shows you how to create a table.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <body> <table> <tr> <td>one</td> <td>two</td> <td>three</td> </tr> <tr> <td>a</td> <td>b</td> <td>c</td> </tr> </table> </body> </html>

The code above makes the table below.

one two three
a b c

Web Hosting Resources

Free Website Templates