1 / 6

Beginning Web Site Design Stanford University Continuing Studies CS 21

Beginning Web Site Design Stanford University Continuing Studies CS 21. Mark Branom markb@stanford.edu http://www.stanford.edu/people/markb/ Course Web Site: http://www.geocities.com/stanfordcs21/. Tables. Tables are one of the more complex HTML elements you can use

dusan
Download Presentation

Beginning Web Site Design Stanford University Continuing Studies CS 21

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. Beginning Web Site DesignStanford University Continuing Studies CS 21 Mark Branom markb@stanford.edu http://www.stanford.edu/people/markb/ Course Web Site: http://www.geocities.com/stanfordcs21/ Week 7

  2. Tables • Tables are one of the more complex HTML elements you can use • In their basic form, tables resemble spreadsheets and are often used as such • They can also be used to make creative page layouts of your website Week 7

  3. Table basics • <TABLE> </TABLE> = defines a table • <TR> </TR> = defines a Table Row • <TD> </TD> = defines a Table Cell ("Table Data") • <TH> </TH> = defines a Table Header (special kind of Table Cell) • BGCOLOR / BACKGROUND - specifies color/background of the table (modifies <TABLE>) • Border - specifies border width of table in pixels or % (modifies <TABLE>) • Height - specifies height of the table or cell in pixels or % (modifies <TABLE> and <TD>) • Width - specifies width of the table or cell in pixels or % (modifies <TABLE> and <TD>) • Cellpadding - specifies distance between cell and content within cell(modifies <TABLE>) • Cellspacing - specifies spacing between each cell (modifies <TABLE>) Week 7

  4. Table example <TABLE> <TR> <TH>Bear Name</TH> <TH>Description</TH> </TR> <TR> <TD>Glory</TD> <TD>American Bear</TD> </TR> <TR> <TD>Osito</TD> <TD>Mexican Bear</TD> </TR> </TABLE> Week 7

  5. Creative Use of Tables • In addition to allowing data to be placed onto a web site, tables allow designers the ability to control page layout. • You can use tables to wrap text around graphics, to put text in rows and columns (like a newspaper), etc… Week 7

  6. Demos of tables • http://ughb.stanford.edu • http://www.stanford.edu/~markb/ • Exercises 9 and 10 in class (time permitting) Week 7

More Related