If even the most basic HTML guides assume you know things you've never heard of, this is where you should start.

I have a list of companies that would like to host your website. Please Visit that list. Thanks.


introduction
very basic information
what is important, and what doesn't matter
the basic page
HEAD and BODY
HTML Tags
META Tags
backgrounds - colors
backgrounds - images
pictures
links
pictures as links
email links
tables part 1
tables part 2
lining things up
frames part 1
frames part 2
frames part 3
what tools to use
putting it all together
making search engines love you
viewing your page as you work
making your page pay for itself
page counters
resources
how do they do that?
being sure it's right before you go public
my links
my sponsors
What NOT to do

Tables part 2

Once you understand the basics of tables, it's time to learn to make them a bit fancier. We can take the same simple table from part 1 and color it:

<TABLE BORDER=5 BGCOLOR=LIGHTGREEN BORDERCOLOR=RED>
  <TR>
    <TD>
       hello
    </TD>
    <TD>
       how are you?
    </TD>
  </TR>
</TABLE>
hello how are you?


Cellpadding and Cellspacing

Cellpadding refers to the amount of space allowed inside the cell, around the contents. As an example, here's the same table, with cellpadding set to 15.

<TABLE BORDER=5 BGCOLOR=LIGHTGREEN BORDERCOLOR=RED CELLPADDING=15>
  <TR>
    <TD>
       hello
    </TD>
    <TD>
       how are you?
    </TD>
  </TR>
</TABLE>
hello how are you?


And now we'll add cellspacing at 15, to show the effect that will have.

<TABLE BORDER=5 BGCOLOR=LIGHTGREEN BORDERCOLOR=RED CELLPADDING=15 CELLSPACING=15>
  <TR>
    <TD>
       hello
    </TD>
    <TD>
       how are you?
    </TD>
  </TR>
</TABLE>
hello how are you?


Colspan and Rowspan

The normal table sets itself up so that the columns and rows line up neatly. You can tell it to make parts of your table different, though. If you want 2 columns in all of the table except one part, which has only 1, the Colspan can be set to make those changes.

<TABLE BORDER=5 BGCOLOR=LIGHTGREEN BORDERCOLOR=RED>
  <TR>
    <TD>
       hello 1
    </TD>
    <TD>
       how are you?
    </TD>
  </TR>
  <TR>
    <TD COLSPAN=2>
       hello 2 spans 2 columns
    </TD>
  </TR>
  <TR>
    <TD>
       hello 3
    </TD>
    <TD>
       how are you?
    </TD>
  </TR>
</TABLE>
hello 1 how are you?
hello 2 spans 2 columns
hello 3 how are you?


I will leave it to you to figure out how to make rowspan work.




I have a list of companies that would like to host your website. Please Visit that list. Thanks.




BuyACar     Get paid to express your opinion    Free stuff    Accept credit cards on your website    Website hosts    HTML for beginners    Advertising on your website     Privacy statement