If you came to this page in the middle of the tutorial you may want to go back to the Introduction . Web Hosting Packages How to Build a Table Lets build a simple HTML table in order to see how it is done. This table will be 450 pixels wide, and have 2 rows and 3 columns. As an exercise, you can cut and paste the HTML above into your text editor and save it as table1.html. Double click on the file to view it in your browser.
Lets look at each element of the table.
The table tag can take on several attributes. In the example above the two attributes are width and border. The width can be expressed in either pixels or percent. In the example above the width is 450 pixels. We could just have easily have expressed the width of the table as a percentage of your browser screen.