WorksheetsCSS / HTML
Total questions: 10
Worksheet time: 10mins
Name
Class
Date
1.
Which is correct CSS syntax?
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black)
2.
Select the code below that uses CSS to configure a background color of #000000 for a web page.
a)
body { background-color: #000000; }
b)
body { bgcolor: #000000; }
c)
document { background-page: #000000; }
d)
None of these
3.
What unit of measurement does CSS use for size?
a)
px
b)
em
c)
%
d)
All work
4.
What property changes the border for an image/table?
a)
border:
b)
border-size:
c)
border-color:
5.
Which is the correct way to format a Font Family for a paragraph? (Hint: make sure you have more than one backup font!)
a)
p { font-face: Arial, Verdana, San-Serif; }
b)
p { font-family: Arial, Verdana, San-Serif; }
c)
p { family-font: Arial, Verdana, San-Serif; }
d)
p { font: Arial, Verdana, San-Serif; }
6.
Which rule set would change the font size to 24?
a)
font-size: 24
b)
size: 24;
c)
font-size: 24;
d)
font size: 24;
7.
Which CSS selector applies to the yellow element(s) only? Select the correct answers!
a)
li a{ ... }
b)
li.a{ ... }
c)
li, a{ ... }
d)
li-a{ ...}
e)
none of the above
8.
Which color value in CSS gives a transparency effect?
a)
Color Names
b)
Hex Codes
c)
RGB
d)
RGBA
9.
What will this rule set create?
h1 {
text-decoration: underline overline dotted red;
}
a)
red waves under the heading
b)
red dots over and under the heading
c)
red waves over and under the heading
d)
red dots over the heading
10.
Which line of code correctly places a gif image named "tiger" into a webpage?
a)
<img src="tiger" alt="BengalTiger" />
b)
<img gif=tiger alt="BengalTiger">
c)
<image source="tiger.gif" alt=BengalTiger" />
d)
<img src="tiger.gif" alt="BengalTiger" />
100 %
