Chapter 8: Review


In this chapter we learned about:

The <TABLE> Tag. It is used to mark the beginning of a table with HTML. Always end your table with the </TABLE> tag. Information about the table must be placed between the two markers, <TABLE> and </TABLE>.

The <CAPTION> Tag. HTML tables start with an optional caption. The <CAPTION> tag is placed immediately after the <TABLE> tag. Place the text of the caption between the <CAPTION> tag and the </CAPTION> tag.

HTML tables are composed of cells and are organized by rows. The <TR> tag is used to start a table row, and the </TR> tag to end the row. The content of a cell is placed between the the <TD> tag and the </TD> tag if data is to go into the cell or if a heading is to go into the cell, then the heading is placed between the the <TH> tag and the </TH> tag. If you wish to have an empty cell, place the start marker and the end marker right next to each other.

HTML tables can be aligned on the page, and cell content can be aligned within the cell. Both cases, the whole table and individual cells use the same attribute. This attribute is ALIGN.

HTML tables can have borders around them. One can specify the thickness of the border with the BORDER attribute. The border thickness is specified in pixels.

Cells within HTML tables can also have borders around them. The CELLPADDING attribute separates text of the cell from the cell border with a padding with the specified number of pixels. The CELLSPACING attribute creates a space, or border, of the specified number of pixels, between each cell.

One can specify the width of the table with the WIDTH attribute. Usually this is expressed as a percentage of the width of the text area of the page.

Cells within HTML tables can span multiple rows and multiple columns. Use the ROWSPAN attribute so a cell can span more than one row, and use the COLSPAN attribute so a cell can span more than one column.

This concludes the chapter on tables.

I am ready to go to the next chapter.


[INDEX] [PREVIOUS] [NEXT PAGE] [CHAPTER 8]

Valid HTML 3.2!