★ wanayoo — archive 1999 http://webtools.com/story/html/TLS19981111S0002Nouvelle recherche | Portail wanayoo
CMP's TechWeb Click Here to Vist CMPNET


WebTools

Search WebTools
 

Article Level
  BEGINNER
   INTERMEDIATE
   ADVANCED

Click Here to Vist CMPNET

 
WebTools members,
log in.

  Toolboxes
  Browsers
  HTML, XML, & CSS
  Graphics & Design
  Multimedia
  DHTML & JavaScript
  Java
  Servers & E-Commerce
  Scripting
  Demo

  All Articles
  Tips & Tricks
  About WebTools

TechWeb Sites
 Byte.com
 CMPmetrics
 Data Communications
 File Mine
 InformationWeek
 InternetWeek
 Network Computing
 Planet IT
 TechShopper
 TechWeb News
 Tele.com
 WebTools
 Winmag.com

  Free E-mail
 Login - Sign Up Now

Click here to visit Alta Vista Get Pointcast free

  Privacy Statement

WebTools: HTML, XML, & CSS
 Article Level   BEGINNER  
Tables 101: Reviewing The Basics
In This Article:
Tables 101: Reviewing The Basics
HTML Table Tags
Two Examples

print
Print this story
email
Send as
e-mail
Tables are one of the most common (and commonly misunderstood) tools of basic HTML. Bruce Stewart walks you through the fundamentals of tables, their tags, and their attributes.
By Bruce Stewart, WebTools (11/12/98)

Introduction To Tables
Tables are one of the most common and useful constructs used in Web design. Since early versions of HTML had few page-layout controls, tables emerged as a popular way to exert some control over how objects were displayed in the browser window.

Although originally intended as a mechanism for displaying tabular data, tables are commonly used to achieve other typographical effects, such as establishing margins or creating multiple columns of text.

While CSS offers even more control over page-layout issues, tables aren't going away anytime soon. Here's a quick refresher on how to create HTML tables, including an explanation of all the related tags, some common applications, and some table tips.

Definition Of HTML tables
HTML tables have been a favorite Web design tool since they were introduced as an extension to HTML back in Netscape Navigator 1.1. They made it into the formal HTML specification in HTML 3.2.

The table tags let designers specify rows, columns, and cells of tables, as well as specify headers, control how or if borders are displayed, and group columns together. It's fairly straightforward to use these tags to display tabular data, such as spreadsheets, in Web pages.

Main Uses Of Tables
Web designers quickly saw the power of tables, not so much for their original intended use, but more as a means of having greater control over how images and text are displayed by browsers. One of the most vexing issues for designers working on the Web has always been how to get precise control over page layout, something the original design of HTML didn't intend to provide.

By creatively using tables -- usually not including borders and sometimes nesting tables within other tables -- a variety of interesting effects can be achieved. A common way to have a page display with margins is to create a three-column borderless table with a width of 100 percent, and put the text in the middle column, using the empty first and third columns as margin space. This gives the designer a mechanism to define exact margin sizes, by specifying the width of the margin columns in pixels.

Another common use for tables is in the laying out of images alongside text. This is how newsletter and magazine columns and photos are achieved on the Web -- with the text laid out in one table cell and the photos and captions placed in another.

Next, we'll look at the HTML tags used to create tables.


Bruce Stewart is a telecommunications consultant and technical writer. His articles have appeared on The Site, Web Review, and ZDNet.

Related Stories

WebTools Home | Browsers | HTML, XML, & CSS | Graphics & Design | Multimedia | DHTML & JavaScript | Java | Servers & E-Commerce | Scripting | Demo | All Articles | Threads | WebTools News | Tips and Tricks


C M P n e t   S H O P P I N G
MacTuner V2.1 for Mac
$22.95
Tune in to over 1800 live TV and radio broadcasts and get the most out of your RealAudio and RealVideo players.
Divider
BBEdit V5.1 for Mac
$98.99 !! save 17% !!
A fast, easy, Mac-based HTML authoring tool used by most professional Web Designers.
McAfee VirusScan V4.0 for Win95
$7.99 !! after rebate !!
Protect your PC from all virus types, and receive updates directly on your desktop the moment they're released.

CMPnet Click Here to Vist CMPNET