|
Sections: Introduction | Section 1 | Section 2 | Section 3 |
Section Three: Part A | Part B | Part C | Part D | Part E | Part F |
Tables You have likely seen information displayed in a table; with the table having a a certain number of rows and a certain number of columns. For instance, the table below has 4 rows and 3 columns. In HTML, each "box" in a table is called a cell, so there are 12 cells to this table. One cell contains "Name," another contains "Height," another contains 125 lbs., etc. HTML Tags Used to Create TablesThere are 4 pairs of HTML tags involved in making the table listed above. They are:
Not so bad right? So, if you were to use words to explain the instructions for creating the table example above the instructions would tell the web browser: "Display a table. Include a row with three header data cells. Next include a row with three non-header data cells. Include an additional row with three non-header data cells. Lastly, add one last row with three non-header data cells." Understanding the Structure of an HTML TableTo better understand the tags presented, lets look closely at our previous table example. To create the table it is important to understand the table's structure and understand how to translate that structure into the HTML tags presented. Review the image below (an enlarged version of the table above) and note the parts of the table listed. Stop and ThinkUse the colored borders as your guide to answer the following questions:
As you may have noticed there is one table listed. Within the table there are four rows. In the top row there are three header data cells. The bottom three rows each have three non-header data cells. Take a moment to consider the nested nature of the table. |
© 2008 KCDL. All rights reserved. |