Building a Site

March 6, 2007

Harvard University
Division of Continuing Education
Extension School

Course Web Site: http://cscie12.dce.harvard.edu/

Copyright 1998-2007 David P. Heitmeyer

Instructor email: david_heitmeyer@harvard.edu
Course staff email: cscie12@fas.harvard.edu

Upcoming Schedule

CSS Resources

Dan Cederholm

Eric Meyer

Books

Specifications / Resources

media selector

CSS2 defines a media selector for different media types.

Incorporate as part of the "link" element:

Or, use "@media" selector in style rule:

all
Suitable for all devices.
braille
Intended for braille tactile feedback devices.
embossed
Intended for paged braille printers.
handheld
Intended for handheld devices (typically small screen, limited bandwidth).
print
Intended for paged material and for documents viewed on screen in print preview mode.
projection
Intended for projected presentations, for example projectors.
screen
Intended primarily for color computer screens.
speech
Intended for speech synthesizers. Note: CSS2 had a similar media type called 'aural' for this purpose.
tty
Intended for media using a fixed-pitch character grid (such as teletypes, terminals, or portable devices with limited display capabilities).
tv
Intended for television-type devices (low resolution, color, limited-scrollability screens, sound available).

Print CSS

CSS Print Profile deals with paged media.

The book Cascading Style Sheets : Designing for the Web (3rd Edition) by Hakon Wium Lie and Bert Bos was printed using CSS.

See A List Apart: Articles: Printing a Book with CSS: Boom!

Harvard College Funding Database

Screen display (screen.css):

funding database

Print display (print.css):

funding print

Yahoo! UI Library

Examples

reset-fonts-grids-min.css

CSS Applied to Harvard Homepage

Harvard Home Page
HU Home

Tables exposed:
HU Home

The Transformation

Beginnings of Harvard Homepage with CSS

  Current After Markup/Presentation
Separation
Screenshot hu no css hu css beginning
Markup Type HTML 4.01 Transitional
53 validation errors
XHTML 1.0 Strict
Markup Size 26.1 k 6.9 k
Markup (after 'tidy') 380 lines 134 lines
Document dependencies
  • 1 HTML
  • 48 images
  • 1 XHTML
  • 11 images
  • 2 CSS
Total document weight 226 k 83 k
Elements
elements:  314
        a       60
        b       15
        body    1
        br      9
        center  2
        div     1
        font    10
        head    1
        hr      6
        html    1
        img     61
        meta    3
        p       9
        script  1
        table   16
        td      85
        title   1
        tr      32
attributes: 588
elements:  148
        a       50
        body    1
        br      1
        div     21
        h1      1
        h2      2
        h3      1
        head    1
        html    1
        img     4
        li      43
        link    1
        meta    1
        p       9
        title   1
        ul      10
attributes:  106

Assets

Homepage Sections

Homepage

hu

As Markup

hu

Stages

Building a Web Site

Design and Usability Resources

Online

Jakob Nielsen's Useit.com and Alertbox

Useit.com: Alertbox

Building a Web Site

Audience and Goals

Why are you building the site? Who are you buliding the site for?

Most sites will have multiple audiences.

Michigan State University

What audiences can be identified?

Michigan State University

Audience

Know Your Audience

Typical Audiences for an Academic Department

AAAS

Content and Organization

Content

Organization of Content

From Information Architecture for the World Wide Web:

information architecture defined:

  1. The combination of organization, labeling, and navigation schemes within an information system.
  2. The structural design of an information space to facilitate task completion and intuitive access to content.
  3. The art and science of structuring and classifying web sites and intranets to help people find and manage information.
  4. An emerging discipline and community of practice focused on bringing principles of design and architecture to the digital landscape.

Organize and Label

Organize

Label

Too deep or too shallow?

Too deep or too shallow? Too deep or too shallow?

The "Miscellaneous" category

Categories and Labels from News Sites

CBS
NPR

CNN
CNN

Fox News
Fox News

ABC News
ABC News
MSNBC
MSNBC
NPR
NPR
CNN
CNN

The Web Site

Organization

Reading Suggestion: Ontology is Overrated: Categories, Links, and Tags by Clay Shirkey

Hierarchical

Library of Congress Classification Outline

"Q" - Science

lc system

Open Directory Project

dmoz categories

Sequential

lecture slide to illustrate sequential mode

Webs

wikipedia web Wikipedia.com

Site Architecture

Topics

Topics of Interest

Audience

Target Audience

Task-oriented

Tasks

Internal Organization Structure

Organizational Structure

Search

Tasks

Multiple Architectures

Often a site may need to have multiple architectures.

Michigan State

Michigan State

IBM

IBM

Hewlett Packard

HP Invent

Site Architecture

Navigation Systems

Harvard College

Harvard College

Main Sections

Harvard College

Current Page and Section

Harvard College

More within Current Section

Harvard College

Global Navigation

Appears on every inner page.

Harvard College

Harvard College

Quicklinks

Harvard College

Bread Crumb navigation

"Just wait, Gretel, until the moon rises, and then we shall see the crumbs of bread which I have strewn about, they will show us our way home again.", Hansel in Hansel and Gretel

DMOZ
Bread Crumb Navigation


Construction Projects at FAS, Harvard University
Bread Crumb Navigation

Clamshell navigation

O'Reilly
O'Reilly Navigation
Safari
Clam Shell
Harvard College
Harvard College Navigation

Links

Pay attention to the scent of the site's links.

Links within navigation and content must be:

When creating links:

Your links should have scent, and on a related note, your site should suck.

Please don't "Click Here"


Better...

The CSCI E-12 web site contains the syllabus, schedule, and assignments.

The CSCI E-12 web site contains:


Use "title" attribute

Title attribute can add information so that the link is more predictable and able to be differentiated from others.
Example 6.1
Example 6.1 Source:
Example 6.1 Rendered:

Dean Harry Lewis spoke at morning prayers at Harvard College in February 2003.


Deep Linking

Alertbox: Deep Linking is Good Linking

Example 6.2
Example 6.2 Source:
Example 6.2 Rendered:
Regster for Harvard Summer School so you can take CSCI S-L, "Advanced Web Development Using XML".

Example 6.3
Example 6.3 Source:
Example 6.3 Rendered:
Register for Harvard Summer School so you can take CSCI S-L, "Advanced Web Development Using XML".

Every Page Needs

Importance of a Good Title

Search Engines

screenshot

<head>
  <title>Harvard College Admissions Office</title>
  <meta name="keywords" content="harvard admissions, 
    harvard college admissions, harvard admissions office, 
    harvard college admissions office, 
    harvard undergraduate admissions, 
    harvard undergrad admissions, 
    harvard undergraduate admissions office, 
    visiting harvard, visiting harvard university, 
    harvard university admissions, 
    harvard university undergraduate admissions, 
    harvard college, travel to harvard" />
  <meta name="description" content="The main website for the 
    Harvard College Admissions Office which oversees 
    undergraduate admissions for Harvard University." />
</head>

Visual Design

Site Sketch

Creating Content

People scan Web content. Content designed for print publications will need to be made Web-friendly:
Bullet Lists and Subheadings

Technology Constraints

Design "Above the Fold"

Check your pages for several window sizes:

Below the Fold

Above the fold:
above the fold


Below the fold:
above the fold

and below...
above the fold

Below the Fold, Part 2

Above the fold:
above the fold


Below the fold:
above the fold

Page Design: Fixed or Variable Width?

CNN - fixed table width

CNN
CNN

W3C - flexible table width

W3C
W3C

Page Weight

Take advantage of client-side caching: re-use URLs for CSS, images, javascript throughout the side.

Decide on per page kilobyte budget (30kb, 40kb, 50kb, etc.) which reflects your audience.

URLs as UI

Homepage is often a different beast

Boeing

Boeing Home Page

Boeing Inner Level Page

Harvard College

College Home Page

College Second Level Page

An Aside: The Wayback Machine

Internet Archive
Internet Archive Wayback Machine

Southwest Airlines

Southwest Airlines, 1998

Southwest Airlines, 1998

Southwest Airlines, 2000

Southwest Airlines, 2000

Southwest Airlines, 2003

Southwest Airlines, 2003

Southwest Airlines, 2006

Southwest Airlines, 2006

Commonwealth of Massachusetts

1998

Commonwealth of Massachusetts

1999

Commonwealth of Massachusetts

2002

Commonwealth of Massachusetts

2003

Commonwealth of Massachusetts

2004

Commonwealth of Massachusetts

2005

Commonwealth of Massachusetts

Internal Revenue Service

2001

IRS

2003

IRS

2005

IRS

Boston.com

1997

Boston.com

1999

Boston.com

2001

Boston.com

2002

Boston.com

2003

Boston.com

2004

Boston.com

2005

Boston.com

Accessibility

"The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect."
-- Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Two initiatives to be aware of:

W3C Web Accessibility Initiative (WAI)

W3C's Web Accessibility Initiative (WAI)
http://www.w3.org/WAI/

The Details

W3C WAI Guidelines: Themes

W3C WAI Guidelines

14 Guidelines

Three levels of conformance:

10 Quick Tips to Make Accessible Web Sites from the W3C

This content taken from WAI, Quick Tips to Make Accessible Web Sites, http://www.w3.org/WAI/References/QuickTips/Overview.php

The links in the Quick Tips below mostly go to the techniques documents that provide implementation guidance - including explanations, strategies, and detailed markup examples.

  1. Images & animations: Use the alt attribute to describe the function of each visual.
  2. Image maps. Use the client-side map and text for hotspots.
  3. Multimedia. Provide captioning and transcripts of audio, and descriptions of video.
  4. Hypertext links. Use text that makes sense when read out of context. For example, avoid "click here."
  5. Page organization. Use headings, lists, and consistent structure. Use CSS for layout and style where possible.
  6. Graphs & charts. Summarize or use the longdesc attribute.
  7. Scripts, applets, & plug-ins. Provide alternative content in case active features are inaccessible or unsupported.
  8. Frames. Use the noframes element and meaningful titles.
  9. Tables. Make line-by-line reading sensible. Summarize.
  10. Check your work. Validate. Use tools, checklist, and guidelines at http://www.w3.org/TR/WCAG

© W3C (MIT, INRIA, Keio) 2001/01

Section 508

United States Federal Government Section 508: "The Road to Accessibility"
http://www.section508.gov/

Accessibility Implementation

Example: ready.gov

Ready.gov: From the U.S. Department of Homeland Security

www.ready.gov

Another Technique

Use CSS to move text "off" the screen (a negative position).

Text View

Opera User Style Sheet, "Text" view:

www.ready.gov text browser

<body>
<a href="#mainnav"><img src="_images/s.gif" alt="Skip to main navigation"></a>
<a href="#content"><img src="_images/s.gif" alt="Skip to main content"></a>

www.ready.gov text browser

Ready.gov: From the U.S. Department of Homeland Security

High Contrast View

Opera User Style Sheet, "High Contrast (W/B)" view:

www.ready.gov white on black contrast

Ready.gov: From the U.S. Department of Homeland Security

Images Off

Images disabled (Opera or Firefox Web Developer Extension)

www.ready.gov images off

Ready.gov: From the U.S. Department of Homeland Security

Small Screen

Opera "small screen" view

www.ready.gov images off

Ready.gov: From the U.S. Department of Homeland Security