HTML and CSS Reference
In-Depth Information
Correct answer: B
2.
Incorrect: Media queries are not best suited for setting the priority of style sheet
references in a webpage.
A.
Correct: Media queries are best suited for creating a responsive user interface
based on the screen size of the view port.
B.
Incorrect: Media queries are not best suited for modifying the view port to prop-
erly fit the content of the page.
C.
Incorrect: Media queries are not best suited for connecting to third-party style
sheets to alter the layout.
D.
Correct answer: A
3.
Correct: ease will start slow, speed up and end slow. This is also the default value.
A.
Incorrect: ease-in will start slow and speed up.
B.
Incorrect: ease-out will slow near the end.
C.
Incorrect: ease-in-out will slow at the beginning and at the end.
D.
Objective 4.5: Thought experiment
What is interesting about this thought experiment is recognizing that not all pseudo-class
or pseudo-element selectors are supported by jQuery. For example, inserting content via
pseudo selectors does not work in this way. However, some things can be done via jQuery. In
this example, the following code shows how the pseudo-element selector works in a jQuery
selector:
<script>
$("document").ready(function () {
$("p:first-child").css("color", "green");
});
</script>
Objective 4.5: Review
Correct answer: A
1.
Correct: .code is a CSS class selector.
A.
Incorrect: #code is an ID selector.
B.
Incorrect: div[code] is an attribute selector.
C.
Incorrect: :code is not a valid statement.
D.
Search WWH ::




Custom Search