http://pws.prserv.net/usinet.jkbaumg/presentations/html2.html
workshop by Jessica Baumgart
jkbaumg@attglobal.net
Tuesday, March 28; Monday, April 3; and Wednesday, April 5
If you are printing this page, you might want to print the page source to use as a guide to the HTML code. You can get to the page source by using your Web browser's command to view the page source.
The workshop help sheet for the first part of this workshop, HTML Introduction, is available online at: http://pws.prserv.net/usinet.jkbaumg/presentations/html1.html.
Helpful hints for creating links:
| The code for this image looks like: <img src="../images/snwmnmelt.gif" alt="melted snowman by Jessica Baumgart" align="right"> | ![]() |
A page with images you can use to practice is available at: http://pws.prserv.net/usinet.jkbaumg/presentations/images.html.
| Table Code | Interpretation |
|---|---|
| <table> <tr><td></td><td></td></tr> <tr><td></td><td></td></tr> </table> |
<td></td> indicates a data cell <tr></tr> indicates a row of the table |
| Table headings can be created by using <th></th>. These tags tell the browser which rows contain heading information for your table. Some browsers make this information bold. The headers above use the <th></th>tags. | |
| This table shows some of these features. | Notice the changes? |
| There are other tables on this page. Can you spot them? | |
The format for metadata varies based on the type. Dublin Core looks like
this:
<meta name="DC.Creator.PersonalName" content="Baumgart,
Jessica">
For more examples, look at the top of this page's code.
If this text looks different to you, that's because your browser is reading the commands that trigger the formatting specified in the Style Sheet. (If it doesn't look any different, try adjusting your preferences to enable or read style sheets.) Style Sheets are used to control the way content looks across different browsers. You can control many things using them, like background color or image, link and text colors, font style and size, and spacing. Style sheets can either be embedded (placed in the document between the <head></head> tags) or linked. Older browsers do not interpret style sheets. Users can turn them off in new browsers, so it is likely that a surfer will not read your style sheet at all. You should be aware of the way your page looks with and without style sheets so you can make any adjustments in the code to cover times when the style sheet won't be read.
A style sheet looks like this:
<style>
/* basic defaults */
a:link { color: #990033;
text-decoration: underline }
a:visited { color: #1c711a;
text-decoration: underline }
a:active { color: #000000;
text-decoration: underline }
BODY {background-image: url(http://www.sit.wisc.edu/images/bg2.gif)}
table { margin-left: 0em }
/* left-column formatting */
.lcol { font-family: palatino, serif;
font-size: small;
text-align: center;
margin-right: .5em }
p.lcolhead { text-align: center;
font-family: palatino, serif;
font-size: small }
/* main body formatting */
div.sub1 { margin-left: +2em }
div.termsub1 { margin-left: +1em }
div.sub2 { margin-left: +2em }
/* nested subdivisions */
div.termsub2 { margin-left: +1em }
/* terminal pages use smaller margins */
div.sub3 { margin-left: +2em }
div.termsub3 { margin-left: +1em }
.menu { font-family: helvetica, sans-serif }
/* used mainly for headings */
.option { font-family: helvetica, sans-serif }
/* used mainly for text */
p.txt { font-family: palatino, serif;
text-indent: 1.75em }
/* miscellaneous formatting */
kbd { font-family: monaco, courier, monospace }
p.intro { font-family: palatino, serif }
.dbnote { font-style: italic; font-size: smaller }
.dbname { text-transform: uppercase }
</style>
The style sheet for this page looks a bit different and is shorter.
To "turn on" any of these styles, you must use normal HTML tags combined with a "class" designation with the codes, like this: <p class="txt">