Exercise 09.04: CSS Specificity

Goal

The goal of this exer­cise is to demon­strate and doc­u­ment speci­ficity as it applies to CSS style rule conflicts.

Objective

The objec­tive of the exer­cise is to layer styles to an HTML doc­u­ment and make a visual obser­va­tion that sup­ports a clear acknowl­edg­ment of behavior.

Background

Exercise

Using the files pro­vided, recre­ate the basic lay­out by attach­ing the fol­low­ing style sheets sequen­tially, cre­at­ing and sav­ing each addi­tion as a new document.

HTMLCSS
01exercise01_reset.htmlreset.css
02exercise01_text.htmltext.css
03exercise01_960_12_col.html960_12_col.css
04exercise01_color.htmlcolor.html

In con­clu­sion, you should be able to open each HTML file in a browser and see how each file is pro­gres­sively altered by the addi­tion of the CSS rules. The final file should look sim­i­lar to fig­ure 1.

Sample Image of CSS specificity
Fin­ished Lay­out Sam­ple (fig­ure 1).

Assessment

  • The fol­low­ing rubric posted on D2L will deter­mine exer­cise score: Exer­cise Grading

Techniques

Mark up, selec­tor, dec­la­ra­tion, prop­er­ties, val­ues, validator,

Materials

com­puter, web browser, Dreamweaver, Source files: exer02_01_source_files.zip

Deadlines

As defined by cor­re­spond­ing cal­en­dar item, drop­box, dis­cus­sion or con­tent topic description.