Assignment 8 — Working with Fonts and Colors
Description: | This week, you'll learn how to use different font families, weights, styles, and sizes to style different text elements on a web page. The assignment also introduces how color systems work within HTML. CSS provides several different font properties that you can use to format the text on your web page. These properties include:
p {font-size: 20px; font-family: Verdona, Geneva, Arial, sans-serif; font-weight:bold; font-style:italics;} When specifying a font-family, you have to be careful not to assume that any fonts (beyond a few basic fonts) are available on your reader's computer. One way to ensure that font is there is to either upload it to your website or use a font API (such as Google fonts) and reference the font via a URL. To change the color of your text, you can use the color property. You specify colors by either using a name for the color, the RGB (red-green-blue) color code, or the hexadecimal representation of the color. Adobe provides a free tool that allows you to create or use a color theme and identifies the RGB codes or hex code for you to use: http://color.adobe.com. The follow example illustrates the different ways you can specify color: h1 {color:blue;} h2 {color: rgb(0,0,255);} h3 {color: #CC6600;} For more information, refer to Chapter 8 of the Head First HTML and CSS book. |
|||
CSS elements: |
|
|||
Videos: | Working with Fonts and Colors | |||
Tasks: |
|
|||
Grading criteria: | Your assignment should demonstrate:
|
|||
Due: | By 11/6 | |||
Example assignment: |