[IMAGE] IU SLIS logo

Demo page logo

Tables


Tables are a feature supported by Netscape 2.0 (and higher), Internet Explorer 3.0 (and higher) and other browsers. They are a useful way to present data, organize information, and provide a means for people to move around your pages. Using tables, you can arrange text and images within cells that are placed into rows and columns. To create a table involves using a more complex markup than we have used in the past

For example, this was the table we made using the <pre> paired tags:


			Who "gets" the Web?

			Students      Faculty      Babies   Cats

Understand HTML	          60%          55%          5%         4%

Sort of get it		  30%          30%         10%         5%

Don't get it		   8%           5%         80%         21%

Chase mice		   2%          10%          5%         70%


It had the monospaced font and we had to carefully line up the elements of the table. Here's the same information using the <table> paired tags:


Who "gets" the Web?

Students Faculty Babies Cats
Understand html 60% 55% 5% 4%
Sort of get it 30% 30% 10% 5%
Don't get it 8% 5% 80% 21%
Chase mice 2% 10% 5% 70%


The markup for this table looks like this

Here is another example that will use tables as a page layout tool


Making Tables

So...just how'd we do this anyway?:

The main tags used in creating a table are:

To summarize, tables give you several levels of control.

Note that his link opens a new browser window - close it to come back here

There's more we can do with tables


Demo Page
Navigation:
DemoPage contents About HTML UNIX help HTML tags Lists Links Images
Imagemapping Tables Forms Frames Javascript CSS (style sheets) XML


Page by Howard Rosenbaum
Find me at hrosenba@indiana.edu http://www.slis.indiana.edu/hrosenba/www/Demo/Demo4.html