Design Fundamentals for the Web – Session 3

September 11, 2014

Review

Last week’s agenda

Review of the Web Design Process

  1. Identify the types of users you need to communicate with
  2. Identify what each user type needs to be able to do
  3. Organize your content semantically
  4. Compose appropriate layouts for your content
  5. Create visual hierarchies for your content with type
  6. Apply design principles to emphasize relationships between elements
  7. Create mood and enhance your visual hierarchies and element relationships using color
  8. Breath life into your design with behavioral feedback
  9. Test, rinse & repeat!

Basic HTML


Serving Pages on a Web Server

In order for the rest of the world to be able to see and interact with your web pages, you'll need to serve them through a web server with an internet address. It just so happens your TCNJ web accounts let you do this pretty easily.

FTP

FTP is an acronym for "File Transfer Protocol", and allows us to upload our web pages from our local computer to a web server.

Execise


The Document Object Model

When the browser loads an HTML document, in creates an internal representation of the HTML in memory. This internal representation is called the Document Object Model, DOM for short.

This DOM allows us to reference specific HTML elemts in the page, associating styling information with Cascading Style Sheets, or events with Javascript.


Cascading Style Sheets

Cascading Style Sheets allow us to define how we want our HTML to appear on screen. The HTML gives our content structure, CSS presents it. Proper web design separates content (HTML) from presentation (CSS). Separating content and presentation gives us several benefits:

Including Styles

What does “Cascading” mean?

We can apply our styles in sequence, selectively overriding previously defined styles, by “cascading&rquo; a new style on top of it.

CSS Selectors

CSS Rules

CSS rules are the collection of properties and values you are assigning to your CSS Selectors. For example, to apply a font-family to all elements on your page (in essence setting the default font family), try this:

* { font-family:Arial, Helvetica, sans-serif; }

You can find out more about CSS at the Mozilla Developer Network's Getting Starrted With CSS.


Typestyles

Type is the most basic mode of communication in web design – we use words to communicate first. Good design presents our ideas quickly & simply, making it easy for our audience to understand what we're communicating. Typestyles are specific letter forms that have been developed for presenting text on different media (stone, paper, computer screen, etc). A font is a packaged typestyle that includes additional specifications, including sizes, weights, styles (normal, italic, oblique) & spacing information.

Serif & Sans-Serif Fonts

There are two main font families used on the web:


Using Type with CSS

There are a number of properties you can use to control typestyles using CSS:

You can also set all of them at once using the font property, i.e. h1 {font:30px Times New Roman, serif;}.

You can find more details on CSS font properties at W3Schools.

Exercise


Assignment 3

Reading

Design

Create a Type Treatment for Your Pages

After you have completed the reading assignment, revisit the HTML pages you created and create a type treatment for them.