Design Fundamentals for the Web – Session 3

February 4, 2014

Review

Last week’s agenda

First HTML Page

Demo

Let's create an HTML page and publish it to Github Pages

Exercise

<

Sitemaps

Demo

Let's create a sitemap based on user stories

Exercise


Basic CSS

What are 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 your HTML pages and create a type treatment for them.