|
Sections: Introduction | Section 1 | Section 2 | Section 3 | Section 4 | Section 5 |
Section Five: Part A | Part B | Part C | Part D | Part E |
Tables When <table> tags were added to the HTML protocol, there intended use was to display data in a readable format. As the Internet blossomed and more pages were created for commercial purposes, web designers began to use tables for creating attractive page layouts. However, this method for creating a web page's layout was limiting; the display of the page was not uniform across browsers nor was it scalable to a visitor's screen size. With the introduction of Cascading Style Sheets (CSS), web designers stopped using tables for layout and instead used CSS as it allowed for a more uniform display across browsers and it allowed for scalability of pages. The use of tables has now returned to its inteneded purpose: the display of data in a readable format. 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. 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 sets of HTML tags involved in making the table listed above. They are:
To 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 form and understand how to translate that form 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. |