Assignment 7 — Introducing CSS
Description: | CSS allows you to define the appearance and layout of your web pages. In this assignment, you will learn how to create an external style sheet, create and apply CSS rules to your content, and validate your CSS rules. Where to specify style properties You specify the appearance of your CSS by specifying rules that contains various properties. You can either specify the rules:
If you are creating styles that you want to use for more than one web page, you should create an external style sheet file. Selectors Each CSS rule contains a selector and one or more declaration:
The following example shows includes a selector that identifies the <body> element. The rule contains declarations that specify the font-family (arial) and font-size (20px) for all text that appear within that paragraph. Examples of selectors A few simple examples of selectors include:
Validating CSS Because CSS is also a standard, you can validate your CSS against the W3C standard by using a CSS validator that is available at:http://jigsaw.w3.org/css-validator/. This validator is very simliar to the one for HTML. For more information, see Chapter 7 of the Head First HTML and CSS book. |
|||||||||||||||
HTML elements: |
|
|||||||||||||||
CSS properties: |
|
|||||||||||||||
Videos: | Introducing CSS | |||||||||||||||
Tasks: |
|
|||||||||||||||
Grading criteria: | You assignment should demonstrate:
|
|||||||||||||||
Due: | By 10/30 Note: Assignment 6 is also due this week. |
|||||||||||||||
Example assignment: |