280 likes | 396 Views
Web Foundations. Monday, October 28, 2013 LECTURE 19 : Tables. Tables. The Basic Table. Tables. The Basic Table: The Parts Explained. Table is the container that holds all the individual parts. <table>. < tr >. Each row is a container that holds all the individual data cells. <td>.
E N D
Web Foundations Monday, October 28, 2013 LECTURE 19: Tables
Tables The Basic Table
Tables The Basic Table: The Parts Explained Table is the container that holds all the individual parts <table> <tr> Each row is a container that holds all the individual data cells <td> Each cell is a container that holds the individual data
Basic Table <table> </table>
Basic Table <table> <tr> </tr> <tr> </tr> </tr> <tr> </table>
Basic Table <table> <tr> <td> </td> <td> <td> </tr> </td> </td> <td> <tr> <td> <td> </tr> </td> </td> </td> </tr> <tr> <td> </td> </td> <td> <td> </td> </table>
http://faculty.cascadia.edu/cduckett/foundations/tables/basic0.htmlhttp://faculty.cascadia.edu/cduckett/foundations/tables/basic0.html
http://faculty.cascadia.edu/cduckett/foundations/tables/basic.htmlhttp://faculty.cascadia.edu/cduckett/foundations/tables/basic.html
Basic Table <table> <tr> <td> </td> <td> <td> </tr> </td> </td> <td> <tr> <td> <td> </tr> </td> </td> </td> </tr> <tr> <td> </td> </td> <td> <td> </td> </table>
Column Column Column <table> <tr> <td> </td> <td> <td> </tr> </td> </td> <td> <tr> <td> <td> </tr> </td> </td> </td> </tr> <tr> <td> </td> </td> <td> <td> </td> </table>
Tables <table border=1> The Basic Table with Border http://faculty.cascadia.edu/cduckett/foundations/tables/basic2.html
Tables <table border=8> Firefox Chrome Internet Explorer http://faculty.cascadia.edu/cduckett/foundations/tables/basic2a.html
Tables: Borders Made Using CSS Firefox <style> table{ border-color: #000; border-width: 8px; border-style: solid; /* Same as: border: 8px solid #000; */ } td { border-color: #369; border-width: 2px; border-style: solid; /* Same as: border: 2px solid #369; */ } </style> Internet Explorer Chrome http://faculty.cascadia.edu/cduckett/foundations/tables/basic2b.html
Tables <th> The Basic Table with Table Header Tags http://faculty.cascadia.edu/cduckett/foundations/tables/basic3.html http://faculty.cascadia.edu/cduckett/foundations/tables/basic3a.html http://faculty.cascadia.edu/cduckett/foundations/tables/basic3b.html
Tables The Basic Table with Table Header Tags and Background Colors http://faculty.cascadia.edu/cduckett/foundations/tables/basic4.html
Additional Table Tags Caption http://faculty.cascadia.edu/cduckett/foundations/tables/basic5.html
Additional Table Tags Border Collapse with CSS table { border-collapse:collapse; } From this… to this… http://faculty.cascadia.edu/cduckett/foundations/tables/basic6.html
Additional Table Tags Table Padding with CSS td { padding:15px; } http://faculty.cascadia.edu/cduckett/foundations/tables/basic7.html
Additional Table Tags Alignment with CSS td { text-align:right; } http://faculty.cascadia.edu/cduckett/foundations/tables/basic8.html
Additional Table Tags Height and Vertical Alignment with CSS td { height:50px; vertical-align:top; } http://faculty.cascadia.edu/cduckett/foundations/tables/basic9.html
Additional Table Tags Table Width with CSS table { width:50%; } or td { width:150px; } http://faculty.cascadia.edu/cduckett/foundations/tables/basic10.html http://faculty.cascadia.edu/cduckett/foundations/tables/basic11.html
Row Groups THEAD, TFOOT, and TBODY http://faculty.cascadia.edu/cduckett/foundations/tables/basic12.html
Spanning Column and Row Spanning http://faculty.cascadia.edu/cduckett/foundations/tables/basic13.html
Spanning Column and Row Spanning Column Span Row Row Span Row Row Row Column Column Column
Spanning Column and Row Spanning http://faculty.cascadia.edu/cduckett/foundations/tables/basic13a.html
Spanning Column and Row Spanning http://faculty.cascadia.edu/cduckett/foundations/tables/basic14.html
Table Inside a Table http://faculty.cascadia.edu/cduckett/foundations/tables/basic15.html
Tables http://faculty.cascadia.edu/cduckett/foundations/tables/ • More Table Examples with CSS Formatting • General Table • Column Options • Column Styles • Financial • Dark • Other Table Links • HTML Table Tutorial • HTML5 Tables