USING TABLES TO DESIGN A WEB PAGEYou don't need to use tables to design your pages, but the alternative is to have your text in one big clump with a right, left or (the choice of amateurs) in the center. TABLES provide a framework to hang your objects (meaning here text strings and images) all across the page. Tables, with their built-in attribute of "cellpadding" offer an easy way to control text margins. WHAT ARE THE PARTS OF A TABLE?
WHAT FORMATTING CAN I ASK FOR IN THE TABLE TAG?In part, you can ask for the following attributes within the table tag (right click in Dreamweaver):
CAN I GET THE SAME STUFF IN A CELL TAG?Yeah, pretty much, you can. Can't get cellpadding, cellspacing or border, though. You can code attributes into table rows, too, but mostly you want to work with table and cell attributes.
BACKGROUNDSYou can choose your own background colors and images for the page body, any table and any cell by invoking an attribute, either "bgcolor" or "background". A backgroun color is easy to use, and a great tool. Putting in a background image is a bit trickier:
BTW: WRITING INVISIBLE COMMENTSThis is an "Oh, by the way If you bracket anything with these halves of a tag < ! - - and - - > , everything in between is "commented out" and will not be seen by the browser. If you want to write notes on your pages for reference purposes, just put them between the halves of the comment tag. NOTE: Anyone who uses "View Source" on a browser can see what you've written on your page, so don't get too cute.
|