2 Column Web PageThis is a basic 2 column web page built using a table. We used no style settings and only the basic attributes of the tags. The column width is set to 50%. You could also set the width in pixels. The background color of the left column is set using the bgcolor attribute. The same effect can be produced using an inline style sheet. The length of the page will expand as you add text. You could add a height setting to one column to make it a constant length. A browser will equalize the 2 columns when viewed. The code for this web page is displayed in the right column. I'll improve the page in the next example by adding a style sheet so that it could be used to make your own website. |
The code
|