Q.1 ______ position elements do not move when the visitor scrolls the browser window up or down.
1) Static
2) Fixed
3) Absolute
4) Relative
Ans: 2) Fixed
Q.2 The z-index property in CSS controls the ________
1) Vertical stacking order of elements that overlap
2) Horizontal stacking order of elements that do not overlap
3) Horizontal stacking order of elements that overlap
Ans: 1) Vertical stacking order of elements that overlap
Q.3 An element with position: fixed; is positioned relative to _________
1) the container
2) nearby object's position
3) the viewport
4) its normal position
Ans: 3) the viewport
Q.4 An element with position: relative; is positioned relative to ________
1) the container
2) nearby object's position
3) None of the options
4) its normal position
Ans: 4) its normal position
Q.5 HTML elements are positioned ________ by default.
1) Absolute
3) Fixed
3) Static
4) Relative
Ans: 3) Static
No comments:
Post a Comment
If you have any doubts, Please let us know.