Get Certified - GoCertify.com!


HOME    articles    tutorials    tool directory    books    about

Free Email
META Tag Generator

Our Other Sites

GoTraining
Get Training on what you need.

GoExam
Certification practice tests with free demos to download.

GoCertify
Complete computer certification resource center covering virtually every IT certification.

SearchCertify
links, links and more certification links!

Using Tables as a Layout Tool (continued)

Table Attributes
You're already familiar with several of the main attributes that can be used with <TABLE>: align, border, and width. The figure below shows how these attributes affect the table.

This table uses the defaults.
No attributes are specified.
The opening tag looks like this: <TABLE>

cell one cell two
cell three cell four

This is the same table,
but centered and with  border set to 1.
The opening tag looks like this:
<TABLE align="center" border="1">

cell one cell two
cell three cell four

This table has width="100" attribute added.
The tag looks like this:
<TABLE border="1" align="center" width="100">

cell one cell two
cell three cell four

Here's the HTML behind the first (top) table:

<TABLE>
  <TR>
    <TD>cell one</TD>
    <TD>cell two</TD>
  </TR>
  <TR>
    <TD>cell three</TD>
    <TD>cell four</TD>
  </TR>
</TABLE>

The HTML for the other tables is identical, except for the opening <TABLE> tag as described above.

previous pagenext page


HOME    articles    tutorials    tool directory    books    about

(c) copyright 2000-2009 Anventure.  All Rights Reserved.
privacy policy