Ronald B Stamets Website Design and Development Corner of logo

Ronald B Stamets, Web Site Design and Development Services

top content bar
Home Website design Domains & Hosting E-Commerce Additional Services Contact Us About Us Web Design Tutorials FAQ Pay Bill Site Map Request Estimate

General overview of tables in a web design

For our purposes, I will be relating the table start  and table end tags as the outside invisible box or perimeter of the table. The <table> tells a browser that a table with rows and columns is starting. Then at least one row and one column must be present. The </table> tells the browser that no more table information is present for that table.
Every table needs at least 1 row across  and must be placed after the <TABLE> and before the </TABLE>.  Table rows butt against the left and right borders of the table they are in.
Every table also needs at least one vertical column and they butt against the top and bottom of the table they reside in.
Below is the code to create a simple one-celled table..

<table>
    <tr>
        <td></td>
    </tr>
</table>

You will see why we indent as our tables become more intricate.


<TABLE>  Tell the browser a table is starting
    <TR>  Tell the browser a row is starting across.
        <TD>  Tell the browser a vertical column is starting.
        </TD> Tell the browser the vertical column has ended
    </TR>  Tell the browser that the row ends now.
</TABLE>  Tell the browser that this table ends now.

Remember <TR> creates horizontal rows and <TD> creates vertical columns. AND the vertical colums MUST be between the start table row and end table row tags.


Previous Page Return To Main Index Next Page

:::Keynote:::

Some newer coding conventions require that tags are now all in lower case, so best practices for coding tags is to use all lower case tags.

<table>
   <tr>
      <td>
      </td>
   </tr>
</table>

Why Not CSS Instead of Tables for layout?

Even at the time of the update of this tutorial (11/25/2006), some browsers will interpret CSS positioning in their own unique way. What that means is that a page viewed on Internet Explorer may fall apart on another browser.

About 6 months ago I designed a website using only CSS. It looked great on my Windows machine, using both IE and Mozilla. But when I viewed the page on my Linux box, with Mozilla, it displayed completely differently and text was covered by images or boxes.

So... Although I prefer to design using all CSS, my priority as a web designer is to insure that a website is displayed properly on the maximum number of browsers available at the time of the website design.

As you continue through this tutorial, you will discover that CSS is used, but the CSS we use is not a higher level CSS.

home
 
Website Design
 
Domains Hosting
 
ECommerce
 
addl services
   
Contact Us
 
About Us
 
Tutorials
 
Design FAQ
 
Pay Bill
 
site map