February 4, 2014
Let's create an HTML page and publish it to Github Pages
Let's create a sitemap based on user stories
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:
<link>
tag, e.g. <link rel="stylesheet" href="mystyles.css">
<style>...</style>
tagstyle="..."
HTML element attributeWe can apply our styles in sequence, selectively overriding previously defined styles, by “cascading&rquo; a new style on top of it.
<style>
tag* {...}
h1 {...}
#myid {...}
.myclass {...}
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.
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.
There are two main font families used on the web:
There are a number of properties you can use to control typestyles using CSS:
* {font-family: Arial, Helvetica, sans-serif;}
p {font-size:12px;}
h1 {line-height: 2em;}
.italics {font-style: italic;}
.bold {font-weight: bold;}
.small_caps {font-variant: small-caps;}
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.
<h1>
, a <p>
, and an anchor tag <a>
After you have completed the reading assignment, revisit your HTML pages and create a type treatment for them.
font
properties, create a type treatment for your web pages.