HTML and CSS Reference
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?
Which one of the following is an attribute selector?
Which of the following statements would alter the style of an anchor element when
the mouse is moved over it?
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