">

Presentation is loading. Please wait.

Presentation is loading. Please wait.

 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2

Similar presentations


Presentation on theme: " 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2 "— Presentation transcript:

1  2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2 A simple XHTML table tag opens a table --> 16

tag summarizes the table's --> Price of Fruit is the first section of a --> inserts a heading cell. --> Fruit 30 Price The border attribute gives the size in pixels of the table’s border. The width attribute gives the width of the table. The summary attribute describes the table’s contents. Text placed in a table header is rendered bold and centered in the cell.
19 20 tag summarizes the table's --> 21 22 Price of Fruit 23 24 is the first section of a --> 25 26 inserts a heading cell. --> 27 28 29 Fruit 30 Price 31 32 The border attribute gives the size in pixels of the table’s border. The width attribute gives the width of the table. The summary attribute describes the table’s contents. Text placed in a table header is rendered bold and centered in the cell.">  2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2 <!DOCTYPE html PUBLIC

2  2001 Prentice Hall, Inc. All rights reserved. Outline 2 Table1.html inserts a table row. --> Apple 40 $ Orange 45 $ Banana 50 $ Pineapple 55 $ Total 62 $ The body of the table is placed between the tbody tags. Table rows are created using the tr element Data placed between td tags are placed in an individual cell. The table footer belongs at the bottom of the table. It formats text in a similar manner to a table header.

3  2001 Prentice Hall, Inc. All rights reserved. Outline 3 Table1.html Program Output Table footer End of table body Start of table body Table header Table Caption

4  2001 Prentice Hall, Inc. All rights reserved. Outline 4 Table2.html 1 2 Internet and WWW How to Program - Tables Table Example Page Here is a more complex sample table and are used to --> The align attribute is used to horizontally align data in a cell. The span attribute indicates width of the data cell in number of columns.

5  2001 Prentice Hall, Inc. All rights reserved. Outline Picture of a camel Camelid comparison 43 Approximate as of 8/ # of Humps 49 Indigenous region 50 Spits? 51 Produces Wool? Camels (bactrian) Africa/Asia 62 Llama 63 Llama 64 Table2.html The vertical alignment of data in a cell can be specified with the valign attribute. The value of the colspan attribute gives the amount of columns taken up by the cell. The value of the rowspan attribute gives the amount of rows taken up by the cell.

6  2001 Prentice Hall, Inc. All rights reserved. Outline 6 Table2.html Program Output Llamas Andes Mountains Cell spanning the size of two rows. Cell spanning the size of four columns.


Download ppt " 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2 "

Similar presentations


Ads by Google