| Navigation Bar | |||
|---|---|---|---|
| Main Table of Contents | Previous Chapter | Next Chapter | |
| Create A Table |
| Reasons For Using Tables |
| Center A Table |
| Add A Border |
| Add A Caption |
| Span Cells |
| Align Data Horizontally |
| Align Data Vertically |
116 Create A Table
| » You can use the PreFormat tag to quickly create a simple table. |
Example:
<Pre> |
Text will retain spacing. ------------------------------------------- Sports Boys Girls ------------------------------------------- Skiing 121 45 Snowboarding 254 67 ------------------------------------------- |
| » You can create a table to neatly display information on a Web page. |
|
| Softball Standings | |||
|---|---|---|---|
| Team | Games | Wins | Losses |
| The Chargers | 10 | 9 | 1 |
| Sluggers | 10 | 8 | 1 |
| The Champs | 10 | 7 | 2 |
| The Eagles | 10 | 5 | 5 |
118 Reasons For Using Tables
| » Display Lists Of Information |
|
| Big Bob's Toy Store Sale | ||
|---|---|---|
| Item | Price | Sale Price |
| Remote Car | $40 | $30 |
| MP3 Player | $150 | $100 |
| Computer | $1,200 | $995 |
| DVD Player | $80 | $60 |
| » Create Newspaper Columns |
|
| HTML Programmer's Journal | ||
|---|---|---|
| The topic for column one is a short story of a man who sat in front of his computer for hours at a time and forgot all about what life had to offer. The man finally saw sunshine and made a vow to strive for balance in his life. This made all his friends happy. | The topic for column two is a short story of a man who sat in front of his computer for hours at a time and forgot all about what life had to offer. The man finally saw sunshine and made a vow to strive for balance in his life. This made all his friends happy. | The topic for column three is a short story of a man who sat in front of his computer for hours at a time and forgot all about what life had to offer. The man finally saw sunshine and made a vow to strive for balance in his life. This made all his friends happy. |
| » Control Web Page Layout |
|
| Photo Album | |
|---|---|
| The first photo is shown to the right of this text. ---> | |
| <--- The second photo is shown to the left of this text. |
| » Create Borders |
|
| Photo Album | |
|---|---|
| You can place both text and an image within the same border. | J |
119 Center A Table
| » You can center a table to improve the overall appearance of your Web page. |
|
| Photo Album | |
|---|---|
| You can center a table to improve the overall appearance of your Web page. | J |
120 Add A Border
| » You can add a border to a table to separate each cell in the table. This will make the data in the table easier to read. |
|
| Photo Album | |
|---|---|
| You can add a border to improve the overall appearance of your Web page. | J |
121 Add A Caption
| » You can add a caption to summarize the information in a table. |
|
| Example: |
| <Table> |
| <Caption> Table With Text & Photo </Caption> |
| </Table> |
| Photo Album | |
|---|---|
| You can add a caption to the table. | J |
122 Span Cells
| » You can combine two or more cells in a row or column to make one large cell. |
| » Span Cells Across Columns |
|
| Calendar | ||||||
|---|---|---|---|---|---|---|
| Sun | Mon | Tues | Wed | Thurs | Fri | Sat |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | - | - | - | - |
| » Span Cells Down Rows |
|
| Calendar | ||||||
|---|---|---|---|---|---|---|
| Sun | Mon | Tues | Wed | Thurs | Fri | Sat |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | - | - | - | - |
124 Align Data Horizontally
| » You can change the horizontal alignment of data in a table. |
|
| Table: Horizontal Alignment | ||
|---|---|---|
| Left | Left | Left |
| Center | Center | Center |
| Right | Right | Right |
125 Align Data Vertically
| » You can change the vertical alignment of data in a table. |
|
| V e r t i c a l | ||
|---|---|---|
| Top | Top | Top |
| Middle | Middle | Middle |
| Bottom | Bottom | Bottom |