CSS Pretest

1) An internal style sheet is found in:

a) the <head>
b) the <body>
c) either the <head> or <body>
d) a <div>
e) none of the above

2) Generally, which takes precedence?

a) an external style sheet
b) an internal style sheet
c) a local style
d) HTML formatting
e) none of the above

3) What is the difference between a class and an ID?

a) an ID must be unique in a page, while a class does not have to be unique in a page
b) an ID must be unique in a site, while a class does not have to be unique in a site
c) an ID can only be applied to a <div>, but a class can be applied to other tags
d) all of the above
e) none of the above

4) Which CSS rule is correct?

a) p { color: red }
b) div { color: red; }
c) h1 { color: red; background-color: white; }
d) all of the above
e) none of the above

5) Which CSS rule is not correct?

a) body { color: red; background-color: black }
b) span { color: red; background-color: black; }
c) h2 { color: red: background-color: black }
d) all of the above
e) none of the above

    

Go to the Tables pretest.