10 year anniversary

Home


Hosting Directory


Host Search


Request a Quote


Web Hosting News


Hosting Forums


Web Host Awards


Guides
Web Hosting
Choose a Host
Dedicated Servers
Reselling
Free Hosting
Articles
Industry News
HTML Explained
Advanced HTML
ASP Explained


Free Listings on Web Host Directory and drive buyers to your Web Hosting Business





HTML Back to Articles & Guides 
Tables

Tables have a variety of uses. They can show columns of text alongside each other, as in newspaper / magazine columns. They are often used purely to place text or graphics evenly spaced alongside each other.

You have a wide choice of table styles, ie whether to have borders, the border width, the gap between cells, spacing inside cells, border color, cell or table background color or images. It is also possible to make a cell take up the space of 2 or more cells, making 1 larger cell.

The table is defined in the following example:

<TABLE>
<TR><TD>Row 1 Column 1 Table Data</TD><TD>Row 1 Column 2 Table Data</TD></TR>
<TR><TD>Row 2 Column 1 Table Data</TD><TD>Row 2 Column 2 Table Data</TD></TR>
</TABLE>

Each row is defined between the <TR> and </TR> tags (table row). Within each row, each cell (column) is defined between the <TD> and </TD> tags (table data). Of course, the whole table is defined between the <TABLE> and </TABLE> tags.

The <TD> tag accepts many attributes to extend the functionality and usefulness of the table.
Specifying the ROWSPAN attribute enables the cell to span over a number of rows, and likewise the COLSPAN attribute enables the cell to span over a number of columns, as follows:

<TD ROWSPAN=n></TD>
<TD COLSPAN=n></TD>

where 'n' represents the number of rows or columns to span.

Tables can be viewed with a border by specifying the BORDER attribute of the <TABLE> tag.
The border color can be specified with the BORDERCOLOR attribute of the <TABLE> tag.

Following is an example which uses each of the tags and attributes for tables mentioned above. If you can't work out how it is done then select to view the HTML source in your browser. Note, you will also see some additional tag attributes not already mentioned. See if you can work out what they do:

Single Cell Single Cell This cell uses ROWSPAN and COLSPAN
Single Cell Single Cell
Single Cell Single Cell Single Cell ROWSPAN, top aligned
Uses COLSPAN, right aligned Single Cell


  Contents     Page 6 - Hyperlinks   |  Guides

Related Guides
Advanced HTML
ASP Explained
Related Areas
Search for a web host

Featured Hosts
US2.net: Offers customers another choice in hosting. Our complete and Plus web hosting packages are generous in specification, with a range of essential features, but best of all at an amazing price.
IX Web Hosting.com: As low as $0.81/mo per hosted domain name! FREE Domain Registration, 200,000MB to UNLIMITED Web Space & FREE Website Builder!
SuperbHosting.Net: Starting as low as $2.50/m, 2 FREE Domains, FREE Setup + WebSiteCreator + Blog Software, Unlimited Traffic, 200 GB HD, your own IP, 2500 Emails, daily backups & more, connected to our coast-to-coast backbone.
$5.95/mo – 6 MONTHS FREE: UNLIMITED Disk Space, UNLIMITED Bandwidth, FREE Domain, FREE Site Builder, FREE Setup, and MORE!
Crystaltech.com: Host with the best! 3 FREE months with a waived setup on any new dedicated server! Call 1-877-323-HOST or visit CrystalTech.com today!
Hivelocity.com: Core2Duo- $119/mo, Core2Quad- $149/mo, Quad-Core Xeon- $185/mo, Dual Quad-Core Xeon- $299/mo, Zero Setup- Free Ram Upgrades
Ace-host.net: 500 GB Disk Space, 5,000 GB Bandwidth, Host up to 20 Domains, Unlimited Email Addresses, 24/7 Technical Support, 99.9% Uptime Guarantee, 30-Day Money Back Guarantee - Starting at $6.95/month
Rackspace: Rackspace delivers fully managed windows and linux hosting solutions, a Zero-Downtime Network(tm) and 24x7x365 Fanatical Support(tm).
Aplus.Net: AWARD-WINNING Hosting at Small Business-Friendly Prices (from $5.95 / mo.) - FREE Setup - FREE Domain - 99.9% Uptime - 24/7 Support - LIMITED TIME SALE!
hostgator.com: CALL NOW 1-866-96-GATOR >> 24/7 >>PHONE AND INSTANT MESSENGER SUPPORT >>A TON OF SPACE!! >>> TONS OF >>BANDWIDTH! >> FREE SETUP >> DOZENS OF FREE SCRIPTS INSTALLED >>
Softlayer Technologies: Dedicated Servers, free services & private network; Come to SoftLayer for best in class facilities, technology & customer support
WebIntellects: Tired of bait and switch hosting? Low cost gimmicks? So are we. See why we are the provider of choice in over 80 countries world-wide!
The Planet Hosting: Dedicated Server Deals: As the leading dedicated server hosting provider, The Planet always gives you the best prices on website hosting. See all our deals.

Most Popular Web Hosting Searches Advertisers, Get Listed Here. 
LYPHA.COM - Recommended
2.5TB Storage, 20TB Transfer - $3.95/mo. Free Domain Name.... more
Netzonehost - Best Value
Linux Hosting From $4.99 per month with great added value, over 30+ free scripts, Mysql and from 300GB Data Transfer!... more
Mochahost.com
From $3.71/mo; cPanel, Unlimited mailboxes, Free Site Builder w/ 500+ templates, PHP5, MySQL5, JSP, Ruby, SVN, 20,000 MB space & ... more



Unix/Linux Shared Hosts
Netzonehost - Best Value
Get 15GB Data Storage, 300GB Data Transfer & Great Bonuses ... more
LYPHA.COM - Recommended
2.5TB Storage, 20TB Transfer - $3.95/mo. Free Domain Name.... more
REG2C.COM
Reg2c.com is an ICANN accredited registrar company.Beside ... more
Unix/Linux Dedicated Hosts
Versaweb Hosting
Get the dedicated hosting solution you need, starting as ... more
Peer1 Network
Boost your performance online with PEER 1's award-winning ... more
Steadfast Networks
High level of service& low price Dedicated Servers & ... more
Top 3 Shared Hosts
LYPHA.COM - Recommended
2.5TB Storage, 20TB Transfer - $3.95/mo. Free Domain Name.... more
REG2C.COM
Hosting Packages for beginners to professionals with the ... more
IX-ONE.COM Domain Company
IX-ONE.COM is a provider of world-class products at ... more
advertisers: Get listed here
> About us
> Terms & Conditions
> Privacy Policy
> Advertising
> Contact us
> Forum Archive
> Sitemap
> RSS  RSS
RECOMMENDED BY
  Copyright © 1997-2008, Web Host Directory Ltd.  Web Hosting Directory