HTML and CSS Reference
In-Depth Information
7. Which of the following will configure padding
that is 15 pixels on the top, 0 pixels on the left
and right, and 5 pixels on the bottom?
a. margin: 0px 5px 0px 15px;
b. margin: top-15, left-0, right-0,
bottom-5;
c. padding: 15px 0 5px 0;
d. padding: 0 0 15px 5px ;
10. Which of the following will insert a comment in
CSS?
a. // comment //
b. /* comment */
c. /- comment -/
d. <* comment *>
Fill in the Blank
11. Configure a style with a(n) _____________ if the
style will only apply to one element on a page.
8. Which of the following is used along with the
left , right and/or top property to configure
the position of an element precisely?
a. position: relative
b. position: absolute
c. position: float
d. none of the above
12. If an element is configured with float:right ,
the other content on the page will appear to its
_____________.
13. The _______________ is always transparent.
14. Use the position:relative property along with
the _______________, _______________, and/or
_______________ property to configure the position
of an element in relation to the normal flow.
9. Which of the following will configure a class
called news to stack on top of other elements
that have a z-index of 5?
a. .news { z-index: high; }
b. .news { z-index: 4; }
c. .news { z-index: 6; }
d. none of the above
15. Configure a style with a________________ if the
style could apply to more than one element on a
page.
Apply Your Knowledge
1. Predict the Result. Draw and write a brief description of the Web page that will be
created with the following XHTML code:
<html>
<head>
<title>CircleSoft Web Design</title>
<style type="text/css">
h1 { border-bottom: 1px groove #333333;
color: #006600;
background-color: #cccccc
}
#content { position: absolute;
left: 200px;
top: 75px;
font-family: Arial,sans-serif;
width: 300px;
}
.nav a { font-weight: bold;
}
</style>
</head>
 
Search WWH ::




Custom Search