Unix Skills 101: 465 (Sept. 20, 2001)
A. Learning Objectives:
- To use a Unix editor, such as Pico (or Emacs)
- To navigate Unix files and directories
- To create a simple HTML file with permissions for Web access to your files
- To control HTML whitespace
- To create a basic file structure with HTML, HEAD, and BODY tags
- To create a HEAD section with a TITLE element
- To create a BODY tag with a BGCOLOR attribute for the entire file with light values such as "white" or "ivory"
- To create a FONT tag with a SIZE attribute and absolute values such as 2 and 4 or +1 and -1 (3 is normal)
- To create a second FONT tag with different SIZE attribute and relative values such as +1 or -1
- To add to a FONT tag a FACE attribute and the value "arial, helvetica, sans-serif"
- To add to a FONT tag a COLOR attribute with dark values such as "maroon" or "navy"
B. Summary:
- One HTML container -- the entire file
- One HEAD container -- then one BODY container -- with one BGCOLOR for file -- white and light colors are printer-friendly
- Unlimited FONT tags which may contain multiple attribuite statements -- require closing /FONT tags
- "Font" means typeface in the printing world but also means size and color for browsers
- SIZE: absolute (1 to 7, 3 being normal) or relative (+/-)
- FACE: three main families -- serif (Times), sans-serif (arial), or momospaced (Courier) -- always use multiple values
- COLOR: dark colors are printer friendly
- Quotes: to be sure, put all values and all multi-word values (e.g, "Times Roman") in matching quotes
ark
C. Color:
- Stay with black and white or similar colors unless you have a reason
- Reverse colors often are hard to read and impossible to print
- Avoid blue, purple and similar colors if text could be confused for clickable links
- Start with simple English words: white, ivory, tan, black,. red, green, maroon, navy, etc.
- There are 216 named "browser-safe" colors
- There are 256x256x256 (16.7 million) colors, more than some monitors can handle
- Hex values for additive red-green-blue (RGB) go from 1-256 (Hex 00-FF)
- Instances range from #000000 (no color=black) to #FFFFFF (all colors=white)
- Common colors are #FF0000 (red), #00FF00 (green), #0000FF (blue), and #999999 (gray).
- Although the hex (16) scale includes #0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F -- the six commonest values are #0,3,6,9,C,F or #00,33,66,99,CC,FF
D. Type faces:
- A nicer serif font than Times is Georgia
- A nicer sans-serif font than arial/helvetica is Verbana
- Not all browers have the uncommon and exotic font faces
- In print,serif fonts are used for text and sans-serif for display headlines --
- But screen fonts sometimes reverse this rule for smaller sizes, using sans-serif for text
- Always express font faces as a family separated by commas: "Windows, Mac, generic"
- Examples: "verbana, arial, helvetica, sans-serif" and "georgia, Times. "Times Roman", serif"
E. It's all obsolete!
- The W3C directive for HTML 4.0 "deprecates" the FONT tag, which will eventually be replaced by style sheets
- The FONT tag will no doubt be around for many years in backward-compatible browsers
- The FONT system is easier to learn than style sheets, which we'll do later
F. FONT attribute exercises in this file:
- Change the color words so red is red, etc. Don't forget the closing tags.
- Do some absolute size changes and some relative size changes.
- Render this section in a different type face