Lesson 3 Notes
Lesson 3 Notes
In this and subsequent lessons you will be expanding your knowledge of HTML codes through a series of HTML practice
exercises. These exercises, used in conjunction with the assignments, will culminate in a complete web site.
In this exercise, I provide suggestions for proper presentation and navigation. You should apply what you learn to the
final web project (Assignment #6).
Web Design
Whatever your personal preferences, design your website to appeal to your target audience—the people who will use
your site. Your intended target audience may be specific, such as children, teenagers, college students, young couples,
or seniors, or you may intend your site to appeal to everyone. The purpose and goals of your visitors will vary—they may
be casually seeking information, performing research for school or work, comparison shopping, job hunting, and so on.
The design of a website should appeal to and meet the needs of the target audience.
Website Organization
One of the most important parts of creating a Web site is deciding how the user is going to find the information you are
presenting. There are three common types of website organization:
Hierarchical
Linear
Random
Most websites use hierarchical organization. A site map for hierarchical organization is characterized by a clearly defined
home page with links to major site sections. Web pages within sections are placed as needed. The home page and the
first level of pages in a hierarchical site map typically indicate the hyperlinks on the main navigation bar of each web
page.
When the purpose of a site or series of pages on a site is to provide a tutorial, tour, or presentation that needs to be
viewed sequentially, linear organization, is useful. In linear organization, the pages are viewed one after another. Some
websites use hierarchical organization in general, but with linear organization in a few small areas.
Random organization (sometimes called Web organization) offers no clear path through the site. There is often no clear
home page and no discernable structure. Random organization is not as common as hierarchical or linear organization
and is usually found only on artistic sites or sites that strive to be especially different and original. This type of
organization is typically not used for commercial websites.
One good way to plan the layout of your pages is to draw a "map" of your pages - just a bunch of circles representing
each page, and lines between them representing the links you have made between them.
Here are a few example layouts and suggestions of what they may be appropriate for. (Please note that I cannot cover
every possibility, and what is listed here as appropriate is not the only way of doing it.)
Figure 1.
This kind of layout would be best suited to an essay, or a technical paper, which needed to have an extensive glossary or
set of footnotes. Links from the index to the sub-pages allow the reader to pick sections, links between sections allow
them to read them all in order, and links to the "footnote" page provide explanations when needed.
Figure 2.
This type of layout is rarely used but is sometimes appropriate. If your site contains a large number of unrelated topics,
they would be together linked at the main index, but not between each other.
Figure 3.
This is one of the more common types of layout, with one main index linking to sub-topics, which could then link to more
sub-topics, and so on. An example of a major site which uses this layout would be the Yahoo! Web Indexing site.
Figure 4.
Though it may not look it, this layout is the same as the one above it. Remember that just because one menu is three
levels deep, they do not all have to be.
Presentation
When arranging text for a presentation, whether it is on a Web page, in an essay, or in an annual business report, great
care must be taken to present the information in a manner which does the following:
Fonts
The best sans serif fonts to use for maximum ease in screen viewing of type are 11-pixel Verdana, Arial, and Helvetica, in
that order. These are all SANS-serif fonts (Macworld, "Reconcilable Differences: Design Web Sites that Work Anywhere."
p. 70, September 2000).
Emphasis
Line Lengths
Justification
Colour
For large amounts of text, try black text on white or very pastel backgrounds. Pastel colour backgrounds are preferable to
white, which tends to glare.
Use blue for large areas, because our eyes aren't particularly sensitive to it.
Avoid placing two colours side by side if they differ only the amount of blue they contain. The boundaries will appear
blurry because of the eye's lack of blue receptors.
Avoid using red and green for large areas - it is distracting. Also, many people are red/green colour blind, and wouldn't be
able to see what you are trying to emphasize with these colours.
Match people's colour expectations (red - stop, yellow - caution/creative, green - go/nature, blue - water/cold, grey -
neutral).
Remember, colour schemes can contribute greatly, not only to the interest of the pages, but also to their readability. Be
careful not to overdo it.
Graphics
Langevin Learning Services advises one to place graphics in the top half of the screen and text in the bottom half (or
place graphics on the right-hand side of the screen if there is no text). This is because the reader's eyes start in the
upper-left corner of the screen and proceed right and down (cf. Kristof & Satran, p. 90). Messages in the bottom left-
corner can often be overlooked. (Langevin Learning Services. Designing Computer Based Training. Training manual
distributed by course leader Terry Donahue, during Designing Computer Based Training workshop, Delta Chelsea Inn,
Toronto, Ontario, September 6-9, 1995).
Readability
For your writing style, the same basic rules should be applied as when you are writing anything else. Good grammar and
spelling are important, as well as keeping the information relevant. If there is no point to a statement, it should not be
included in your page.
The last part of formatting is how the text itself is arranged. Remember that when people are first taught how to read (in
English), it is with the text flowing from left to right, and all of it is aligned smoothly with the left-hand margin. Since
native English speakers are all introduced to the language in this manner, it is always easier to read it that way as well.
Cascading Style Sheets (CSS)
o Visit http://www.csszengarden.com
· Style Sheets
· CSS
o provides the functionality of style sheets (and much more) for web developers
CSS Advantages
· Greater typography and page layout control
· Style is separate from structure
· Styles can be stored in a separate document and linked to from the web page
· Potentially smaller documents
· Easier site maintenance
· Inline Styles
· Embedded Styles
· External Styles
o The HTML <link /> element in the header section of a Web page associates it with the .css file
· Imported Styles
CSS Syntax
· Style sheets are composed of "Rules" that describe the styling to be applied.
Each Rule contains a Selector and a Declaration
This could also be written using hexadecimal color values as shown below.
o Monochromatic
§ http://meyerweb.com/eric/tools/color-blend
o http://www.colr.org
o Avoid using red, green, brown, gray, or purple next to each other
o White, black, and shades of blue and yellow are easier to differentiate.
· Simulation: http://www.vischeck.com/vischeck/vischeckURL.php
o font-weight
o font-style
o font-size
o font-family
· Accessibility Recommendation:
o Use em or percentage font sizes – these can be easily enlarged in all browsers by users
<style type="text/css">
body { background-color: #E6E6FA;
color: #191970;
font-family: Arial, Verdana, sans-serif; }
h1 { background-color: #191970;
color: #E6E6FA;
line-height: 200%;
font-family: Georgia, "Times New Roman", serif; }
h2 { background-color: #AEAED4;
color: #191970;
font-family: Georgia, "Times New Roman", serif; }
p {font-size: .90em; }
ul {font-weight: bold; }
</style>
site.css
body {background-color:#E6E6FA;
color:#000000;
font-family:Arial, sans-serif;
font-size:90%; }
h2 { color: #003366; }
.nav { font-size: 16px;
font-weight: bold;
}
To link to the external style sheet called color.css, the HTML code placed in the header section is:
<link rel="stylesheet" href="colour.css" type="text/css" />
CSS Selectors
· Useful to define an area that will contain other block-level tags (such as paragraphs or spans) within it.
<style type="text/css">
.footer { font-size: small;
text-align: center; }
</style>
· HTML:
<div class=“footer">Copyright © 2009</div>
· XHTML:
<p>Your needs are important to us at <span class=“companyname">Acme Web Design</span>.
We will work with you to build your Web site.</p>
o Configure global font and color properties for the body selector
o Identify typical elements (such as <h1>, <h3>, and so on) and declare style rules for these if needed.
Identify page areas such as logo, navigation, footer, and so on – configure an appropriate class or id for each.
Create one prototype page that contains most of the elements you plan to use and test.
Revise your CSS as needed.
Once your design is set – move styles to an external .css file
Planning and testing are important activities when designing a Web site
Next Step
If you can meet the objectives stated at the beginning of Lesson 3, you are ready to proceed to the next lesson. Keep in
mind the weekly schedule recommended in the course syllabus. Please post to the Discussion area of this course web
site any questions or comments related to this lesson. Only emergency and private messages should be sent through
email to the instructor.
Assignment
Please visit the Assignments portion of the course for details on Assignment #3.