HTML and CSS Reference
In-Depth Information
</body>
</html>
Create all the JavaScript necessary to show and hide the required elements,
depending on the answer to each question. Assume that the answer to each
question is a radio button selection with only Yes/No options.
Objective summary
You can use CSS to define transformation effects.
You can apply transformations via JavaScript to manipulate the DOM with effects such
as rotate, skew, scale, and translate.
The visibility property provides options to control an element's visibility within the page.
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.
Absolute positioning positions an object relative to what?
1.
The top-left corner of the browser window.
A.
The top-left corner of its parent element.
B.
Centered inside the window.
C.
Centered inside its parent element.
D.
Which transformation enables you to change the size of an element?
2.
A. rotate
B.
skew
C. translate
D. scale
Which syntax preserves the layout of the page when hiding an element in the DOM?
3.
display='hidden'
A.
display='inline'
B.
visibility='none'
C.
visibility='hidden'
D.
 
 
Search WWH ::




Custom Search