140 likes | 149 Vues
Ellen Cushman cushmane@msu.edu. Introduction to Web Authoring. Class mtg. #8. www.msu.edu/~cushmane/wra210.htm our syllabus www.msu.edu/~cushmane/wa.htm old class page www.msu.edu/~cushmane/wa2.htm new class page. Today’s Agenda.
E N D
Ellen Cushman cushmane@msu.edu Introduction toWeb Authoring Class mtg. #8 www.msu.edu/~cushmane/wra210.htm our syllabus www.msu.edu/~cushmane/wa.htm old class page www.msu.edu/~cushmane/wa2.htm new class page
Today’s Agenda • Pay attention to how your site organizes the content of the page. where is information located and how? what file architecture does this suggest? • Peer review on 2/6: 4-5 pages of text, plus your image due in class!!!
Objects: Functional, Reusable Chunks of Content Consider a website as composed of “objects,” or… “chunks of text, with associated art, sound, video, etc.– a single unit of meaning with all the necessary components”—Price & Price, Hot Text: Web Writing that Works It’s the job of the writer/designer to determine where/how these objects are displayed on the screen.
I’m referring to Zeldman’s Chapter 7! Structure to Objects: CSS & Xhtml <div id =“header”> <div id =“submenu”> Open the site you’re analyzing and view its source. Many of these sites will be using CSS for layout and xhtml for structure. Here is code that shows a CSS is being used Here is code that shows Xhtml is being used <link rel="stylesheet" href="images/BrightSide.css" type="text/css" />
Structure to Objects:Divs & Grids In Xhtml, a div is in “W3C’s phrase, ‘a generic mechanism for adding structure.” In the header and submenu divs, these structural elements allow a navigation bar to be placed in the header along with a logo. * Always give the value’s of your (div) identifier (id) attributes (=) that are semantically meaningful to outside readers (“submenu”); vs names that are meaningful to you (“bluebox”).
Grids: Locating Objects in a Display Page designers use grids to place objects consistently and in some kind of meaningful relationship to one another
Grid Problem • Return to your site: • Map the basic layout grid the site uses for its main page. Label grid areas with object names. • Return to dreamweaver and using the table code in the next slides to help you, continue developing your parody site using the split screen of code/design. • Post your mockup on your webpage and try to include the parody image!!!
Next class • Peer review on 2/6: 4-5 pages of text for your genre analysis, plus your image and grid due in class!!! • Grid and table sample code follows.
Tables control displays <table width=“700” border=“0”> <tr> <td> </td> </tr> </table> A simple, one cell table like this one can define the viewable area for a web site screen. More complex tables recreate layout grids and contain the objects for a display.
Table attributes, 1 <table border=“1” cellpadding=“4” cellspacing=“0” width=“700”> The values for border, cellpadding, & cellspacing here are in pixels. Use the last two to fine-tune the amount of space between grid squares. It’s helpful to have borders set to “1” when designing so you can see the grid, even if you plan to set them to “0” later.
Table Rows <tr bgcolor=“#CCCCCC” align=“left” valign=“top”> <tr bgcolor=“#FFFFFF” align=“left” valign=“top”> Table rows are do not contain data in HTML, but they can be given attributes. The example above establishes alternating gray & white rows as you might see in a display of search results.
Table Cells <td bgcolor=“red” align=“left” valign=“top” colspan=“2” rowspan=“2”> The red cell spans two vertical columns and two horizontal rows.
Red Cell Table <table width="300" border="1"> <tr> <td bgcolor="red" rowspan="2" colspan="2">Row 1, Cell 1</td> <td>Row 1, Cell 2</td> </tr> <tr> <td>Row 2, Cell 1</td> </tr> <tr> <td>Row 3, Cell 1</td> <td>Row 3, Cell 2</td> <td>Row 3, Cell 3</td> </tr> </table>
Red Cell Table, Nested <table width="300" border="1"> <tr> <td valign="top"> <table border="1" width="200"> <tr> <td bgcolor="red">Table 1, row 1, cell 1<br><br><br><br></td> </tr> </table> <table border="1" width="200"> <tr> <td>t2, r1, c1<br><br></td> <td>t2, r1, c2<br><br></td> </tr> </table> </td> <td> <table border="1" width="100"> <tr> <td> t3,r1, c1<br><br></td> </tr> <tr> <td>t3,r2, c1<br><br></td> </tr> <tr> <td>t3, r3, c1<br><br></td> </tr> </table> </td> </tr> </table>