Attribution:Except where otherwise noted, the contents of this document are Copyright 2012 Marty Stepp, Jessica Miller, and Victoria Kirst. All rights reserved. Any redistribution, reproduction, transmission, or storage of part or all of the contents in any form is prohibited without the author's expressed written permission.
Otherwise noted: Claude Anderson was given permission to modify the slides for CSSE 290 at Rose-Hulman by author Jessica Miller.
The authors' original slides, based on Web Programming Step by Step, can be seen at http://webstepbook.com.
Some of the examples in some days' slides are from David Fisher at Rose-Hulman, who was kind enough to allow me to use them.
My intention is to mark these examples with [DSF].
<p> <a href="http://validator.w3.org/check/referer"> <img src="http://webster.cs.washington.edu/w3c-html.png" alt="Validate" /> </a> </p>
rose-hulman.edu cell,
use one of sliderule.csse.rose-hulman.edu or addiator.rose-hulman.edu;
Public/HTML folder.
http://rose-hulman.edu/~username/webProgramming
SecureFX came with your laptop;
FileZilla is another commonly used program.
csse.rose-hulman.edu cell,
Use wwwuser.csse.rose-hulman.edu or clive.csse.rose-hulman.edu.
Public/HTML/webProgramming
webProgramming folder . It is accessible to you, me, and the TAs.
Its URL is http://wwwuser.csse.rose-hulman.edu/~username/webProgramming. You'll need your CSSE password to access it.
test.html,
and transfer it to your webProgramming folder on CSSE AFS.
<table>,
<tr>,
<td>
A 2D table of rows and columns of data (block element)
<table> <tr><td>1,1</td><td>1,2 okay</td></tr> <tr><td>2,1 real wide</td><td>2,2</td></tr> </table>
| 1,1 | 1,2 okay |
| 2,1 real wide | 2,2 |
table defines the overall table, tr each row, and td each cell's data<th>,
<caption>
<table> <caption>My important data</caption> <tr><th>Column 1</th><th>Column 2</th></tr> <tr><td>1,1</td><td>1,2 okay</td></tr> <tr><td>2,1 real wide</td><td>2,2</td></tr> </table>
| Column 1 | Column 2 |
|---|---|
| 1,1 | 1,2 okay |
| 2,1 real wide | 2,2 |
th cells are considered headers; by default, they appear boldcaption before the table indicates its purpose<thead> and <tbody> sections
p, h1, h2 {
color: red;
}
h2 {
background-color: yellow;
}
This paragraph uses the above style rules.
h2 above)
selector1 selector2 {
properties
}
selector1 > selector2 {
properties
}
<p>Shop at <strong>Hardwick's Hardware</strong>...</p> <ul> <li>The <strong>best</strong> prices in town!</li> <li>Act while supplies last!</li> </ul>
li strong { text-decoration: underline; }
/* ... */
/* This is a comment.
It can span many lines in the CSS file. */
p {
color: red;
background-color: aqua;
}
// single-line comment style is NOT supported in CSS<!-- ... --> HTML comment style is also NOT supported in CSS<p> <a href="http://jigsaw.w3.org/css-validator/check/referer"> <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" /></a> </p>