HTML: A Guide to Hard-Coding

 
   

Starting your first page

The Body

Paragraphs

Headings

Images

Fonts

More Fonts

Line Breaks

Links

Colors

Backgrounds

Horizontal Lines

Mailto

Basic Tables

Advanced Tables

Putting your page Online

Frames

Forms

The Head

JavaScript Drop-Down Menu

Cascading Style Sheets

Basic HTML tags

HTML Home

 

 

Dreamweaver Tutorial

Adobe Acrobat

Faculty Resource Center

 

Susan's Homepage

 

 

More on Basic Tables <TABLE>

Some other very important attributes to to the <table> tag is cellpadding and cellspacing.

Cellpadding refers to the amount of space around your data in each cell. If you don't pad your cells, and you have a border, your data will be right next to the border, which doesn't make for effective graphic use of space. Try putting in a number like <table cellpadding=5> and see how much better it looks.

Cellspacing is the space between cells. Again, this is used so that your data isn't crowded and the cells are not crowded.

Again, cellpadding and cellspacing go in the <table> tag.

The code for these four tables is exactly the same except for cell padding and cellspacing.

The first table has a cellpadding and cellspacing of 5.

The second table has a cellspacing of 5 and no padding.

The third table has a cellpadding of 5 and no cellspacing.

The last table has no cellpadding or spacing.

Two more useful attributes of the table tag are similar to what goes in the <body> tag. These are "background" and "bgcolor." These help to set your table apart from the rest of your page, if that is what you want to do.

Some of the higher versions of browsers, particularly Internet Explorer, allow for a bordercolor as well.

Go on to the next page for more.