HTML and CSS Reference
In-Depth Information
Objective 1.3: Thought experiment
To complete this thought experiment, you must get a reference to the DOM via JavaScript
and set up events for the click to each radio button. When an event is created for notification
of the selection of each radio button, the questions can be shown/hidden as needed. Setting
the display CSS attribute of the elements so that the questions present in flow is key. The
desired effect is for the surrounding elements to behave as though the element is no longer
part of the DOM. Setting display=none achieves this effect.
Objective 1.3: Review
Correct answer: B
1.
Incorrect: The element isn't positioned relative to the browser window.
A.
Correct: Absolute positioning positions the element relative to its parent element.
B.
Incorrect: The element doesn't center within the window.
C.
Incorrect: Absolute positioning doesn't center an element.
D.
Correct answer: D
2.
Incorrect: The rotate transform spins an object clockwise or counterclockwise.
A.
Incorrect: The skew transform slants an object.
B.
Incorrect: The translate transform moves an object.
C.
Correct: The scale transform changes the size of an object.
D.
Correct answer: D
3.
Incorrect: Display='hidden' isn't a valid option.
A.
Incorrect: Display='inline' shows an object that previously wasn't showing.
B.
Incorrect: Visibility='none' isn't a valid option.
C.
Correct: Visibility='hidden' hides an element, and its surrounding elements remain
in place as though the element was still there.
D.
Search WWH ::




Custom Search