Presentation is loading. Please wait.

Presentation is loading. Please wait.

XHTML Tables. Tables: Allow us to display information on the page in a uniform fashion. Work well for organizing groups of words, images, and links. Are.

Similar presentations


Presentation on theme: "XHTML Tables. Tables: Allow us to display information on the page in a uniform fashion. Work well for organizing groups of words, images, and links. Are."— Presentation transcript:

1 XHTML Tables

2 Tables: Allow us to display information on the page in a uniform fashion. Work well for organizing groups of words, images, and links. Are not to be used for layout of an entire web page, only some data within the page.

3 Tables Row

4 Tables Column

5 Tables 3 Rows 2 Columns

6 Adding a Table: The value of the width attribute determines how wide the table will be in pixels. A percentage of the screen can be specified instead, but the resulting table would then look different to different viewers, depending on how wide their screens are.

7 Specifying the Border: The value of the border attribute determines how thick the lines around the table cells will be, as measured in pixels. If this attribute is not specified, no lines will show in the table.

8 Adding Rows: The tag adds a table row. If nothing more is defined inside the tags, the row will take up the entire column.

9 Setting Cells and Columns: The ("table data") tag identifies an individual cell of a table. The available space will be evenly divided between the number of cells specified. In this example, we have created two columns in the first row.

10 Completing the Table: Here we have specified the cells for the second and third row. We now have a uniform table consisting of two columns and three rows.

11 Adding Text to the Table: State Capital Arizona Phoenix Georgia Atlanta StateCapital ArizonaPhoenix GeorgiaAtlanta

12 Adding Table Headers: State Capital Arizona Phoenix Georgia Atlanta StateCapital ArizonaPhoenix GeorgiaAtlanta By using ("table header") tags in the first row instead of, you are defining these cells as special headings in the table. The web browser will then know to treat them differently.

13 Table Syntax: State Capital Arizona Phoenix Georgia Atlanta StateCapital ArizonaPhoenix GeorgiaAtlanta Make sure there is a closing tag for each opening tag and be careful to nest the elements properly.


Download ppt "XHTML Tables. Tables: Allow us to display information on the page in a uniform fashion. Work well for organizing groups of words, images, and links. Are."

Similar presentations


Ads by Google