Creating Simple Tables with Advanced Attributes |
|||
|
|
|
OverviewTables offer a lot of flexibility to Web designers, even without spanning and nesting. There are attributes that can be added to tables, rows, and data cells, each of which has a significant effect and all of which interact. One set of tags and attributes is unique to Microsoft, and although they are useful, they can't be used for general Web work because of their limited support. In this assignment, you will be experimenting systematically with
the attributes and tags that modify the appearance of simple tables.
After each experiment, you will be asked to observe the effects
in three browsers (MS Internet Explorer, Opera, and either Netscape
or Mozilla) and think about specific aspects of how the tables
are rendered. Your thoughts and observations need not be written
down unless your instructor specifically asks you to, but they
are an important part of the learning experience of this assignment. |
|
|
|
The first step involves creating a file with basic tables that you can use for the rest of the exercise by making copies of the file, and thus not having to "re-invent the table".
|
|
Cell Spacing and Padding
Link to 80% size example from Opera 7.54 |
In this part of the exercise, we'll be changing the cell padding and spacing of the five basic tables. To help remember which is which, think of each cell as one of several shipping cartons in a warehouse:
Here are the instructions:
|
|
|
Designers can include information about desired height and width of tables and their elements. The actual rendering of height and width by browsers is the result of a complex series of caluculations, with the desired height and width only a small part of the formula. (For further discussion, see module W24c.)
Note: in the following instructions, always set the column width in cells of the first row. Cells in lower rows need not have width specifications. |
|
|
Column and row grouping is a non-standard feature added by Microsoft for Internet Explorer. Though it's not smart to use it, it's a fun feature. Try it by doing this:
|
|
Link to 100% size example from: |
Most browsers display requested table border sizes, but the way they implement them and the ability to set the colors of borders, and of elements of the borders, are not implemented the same way. Background images for tables and cells are also implemented differently in the browsers, so try these variations and see how they work...
Observe the difference between Explorer and Netscape. Which is dominant in each browser: the table background or the row background? Looking at the rainbow pattern, what is the difference between the way the background image is placed in individual cells? Observe again the differences in the way the browsers handle background images in tables. Observe: Observe: In each browser, at least one attribute is ignored: which browser ignores which attribute(s)? In the browser(s) that display all colored borders, what is the position of the "light" border color as compared to the "dark"? Is it the same for the table border and the cell borders? |
|
Submit the Assignment
|
When you're done, double-check that the assignment meets the specifications above. These are the files that should validate:
Upload to your work to your WCC student Website, and send email to the instructor with the URIs of all five files:
Be sure your email meets the formal requirements: name, class, section and exercise (W24m), and that it follows standard business-email practice. |
| |
|
|---|---|
|
Audience |
This module is for people who are familiar with HTML tables, and want to practice using some of the less widely used features of tables.
|
| Objectives | On successful completion of this module, you will be able to:
|
| Module W24m: | |
| History | Original: 21 January 2003 Last modification: Monday, 31-Aug-2009 11:48:06 EDT |
| Copyright | Copyright © 2003-2005, Laurence
J. Krieg, Washtenaw Community
College Instructors: You may point to this file in your Web-based materials; however, its location may change without notice. Students: You are welcome to make a copy for your personal use. All other uses: Please contact the author, Laurence J. Krieg, for permission: krieg@ieee.org. |