Tables |
||||||||||||||||||||||||||||||
Simple table |
||||||||||||||||||||||||||||||
A table contains rows; within each row are cells.
Look at the samples, to see how the html tags are written. |
||||||||||||||||||||||||||||||
Border styles |
||||||||||||||||||||||||||||||
You can specify a border style, for a border around a any block element. Sometimes you will want to put a border around a table. |
||||||||||||||||||||||||||||||
Center |
||||||||||||||||||||||||||||||
There is no obvious simple way to center a table, image, or other block object. |
||||||||||||||||||||||||||||||
Table and cell widths |
||||||||||||||||||||||||||||||
You can specify the width of a table and the cells in the table by using styles. |
||||||||||||||||||||||||||||||
Table and cell heights |
||||||||||||||||||||||||||||||
Height is not always easy to control.
If the height is a fixed size in pixels, you can specify it with a style.
On the other hand, if the height may vary, such as when it contains text,
it is difficult to correctly adjust the height. |
||||||||||||||||||||||||||||||
Table border spacing |
||||||||||||||||||||||||||||||
Cell spacing is outside every one of the cells in a table. |
||||||||||||||||||||||||||||||
Cell padding |
||||||||||||||||||||||||||||||
You can use the Padding of 3px or more makes cells look better rather than allowing the text to run right up against the edge. Because padding is applied to each cell, the cells could be specified with different padding, though they are often all specified with the same padding.
|
||||||||||||||||||||||||||||||
Padding block elements |
||||||||||||||||||||||||||||||
Padding can be used with any block element
such as
On the other hand padding may not work well in in-line elements
such as
Margin space outside a block element is created
by applying the |
||||||||||||||||||||||||||||||
Table caption |
||||||||||||||||||||||||||||||
You can specify a caption for your table. |
||||||||||||||||||||||||||||||
You can ask for the caption to be aligned at the NO. Captions do not always look the way you want them to look. Why not? We need to consider what the World Wide Web is designed to do. Your page can be transmitted throughout the world through a variety of servers. The page is displayed by the user, using whatever system they have. It is amazing that this works at all. It is not surprising that there are some differences in different environments. What affects some of the differences seen in a web page:
What can you do, to make sure your pages work well? In addition to coding to standards, professional web page developers do a lot of testing in various environments. This makes sure that the web pages work in almost all environments. A business does not want a web page that does not work for 10% of the prospective customers. Perhaps 1% is acceptable, but not 10%. |
||||||||||||||||||||||||||||||
Alignment within a cell |
||||||||||||||||||||||||||||||
Each cell is created by a
The
The |
||||||||||||||||||||||||||||||
Spanning |
||||||||||||||||||||||||||||||
You can make a cell extra tall, spanning several rows.
|
||||||||||||||||||||||||||||||
Page layout |
||||||||||||||||||||||||||||||
A good, easy way to provide a good page layout is to fill the entire page with a table. Without borders, the user does not see the table, but does see everything aligned neatly. |
||||||||||||||||||||||||||||||
Lab 9 |
||||||||||||||||||||||||||||||
Now you are ready to build your lab 9 web page. |
||||||||||||||||||||||||||||||
Complete Lab 9 |
||||||||||||||||||||||||||||||
You have built your lab 9 web page.
|
||||||||||||||||||||||||||||||
Reading assignment |
||||||||||||||||||||||||||||||
Read information that your find relivant from the book you selected. |
||||||||||||||||||||||||||||||