NHS Designs
Web Design
the History of the Internet

Quiz #5

HTML 04 Quiz
Due: August 31
Open Notes

Instructions

Who Does What?

Even though you've just glanced at CSS, you've already begun to see what it can do. Match each line in the style definition to what it does.

Start by writing numbers 1 through 5 down the left side of your page, and then the matching letter for each.

CSS Code

 

What the Code Does

1.
background-color: #d2b48c;

 

a) defines the font to use for text

2.
margin-left: 20%;
margin-right: 20%

 

b) defines a border around the body that is dotted and the color gray

3.
border: 1px dotted gray;

 

c) sets the left and right margins to take up 20% of the page each

4.
padding: 10px 10px 10px 10px;

 

d) sets the background color to a tan color

5.
font-family: sans-serif;

 

e) creates some padding around the body of the page

Source: "Head First HTML: with CSS & XHTML" by Elisabeth Freeman and Eric Freeman


ABOUT MISS PEDERSEN · EMAIL MISS PEDERSEN
resources · copyright information · Natomas High School Design Department