1 / 17

Tables 6

Tables 6. How to create tables What information suits tables How to represent complex data in tables. Tables. Use the four key elements for creating tables Represent complex data using tables Add captions to tables. What's a Table?.

Download Presentation

Tables 6

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tables 6 How to create tables What information suits tables How to represent complex data in tables

  2. Tables • Use the four key elements for creating tables • Represent complex data using tables • Add captions to tables

  3. What's a Table? • A table represents information in a grid format.Examplesof tables include financial reports, TV schedules, and sports results.

  4. Basic Table Structure • <table> The <table> element is used to create a table. The contentsofthe table are written out row by row. • <tr> You indicate the start of each row using the opening <tr> tag.(The trstands for table row.) It is followed by one or more <td> elements (one for each cell in that row). At the end of the row you use aclosing </tr> tag • <td> Each cell of a table is represented using a <td> element. (The td stands for table data.At the end of each cell you use a closing </td> tag..

  5. Basic Table Structure

  6. Basic Table Structure

  7. Table Headings • <th> The <th> element is used just like the <td> element but its purpose is to represent the heading for either a column or a row. (The thstands for table heading.)

  8. Table Headings

  9. Table Headings

  10. Spanning ColumnS

  11. Spanning ColumnS

  12. Spanning rows

  13. Spanning rows

  14. Long Tables • <thead>The headings of the table should sit inside the <thead> element. • <tbody> The body should sit inside the <tbody> element. • <tfoot> The footer belongs inside the <tfoot> elemen

  15. Long Tables

  16. Long tables

  17. SummaryTables • The <table> element is used to add tables to a web page. • A table is drawn out row by row. Each row is created with the <tr> element • Inside each row there are a number of cells represented by the <td> element (or <th> if it is a header) • You can make cells of a table span more than one row or column using the rowspanand colspanattributes. • For long tables you can split the table into a <thead>, <tbody>, and <tfoot>.

More Related