HTML and CSS Reference
In-Depth Information
Objective review
Answer the following questions to test your knowledge of the information in this objective.
You can find the answers to these questions and explanations of why each answer choice is
correct or incorrect in the “Answers” section at the end of this chapter.
Which one of the following is a CSS class selector?
1.
.code
A.
#code
B.
div[code]
C.
:code
D.
Which one of the following is an attribute selector?
2.
.required
A.
#required
B.
input[required]
C.
:required
D.
Which of the following statements would alter the style of an anchor element when
the mouse is moved over it?
3.
a:link
A.
a:mouseover
B.
a:beforeclick
C.
a:hover
D.
Objective 4.6: Structure a CSS ile by using CSS
selectors
CSS files can become large and complex. Structuring them in an organized fashion will
make them easier to maintain and also to know what selectors are best suited to be used to
reference the HTML on your page.
This objective covers how to:
Reference elements correctly
Implement inheritance
Override inheritance using !important
Style an element based on pseudo-elements and pseudo-classes
 
 
 
Search WWH ::




Custom Search