A developer has an image that needs to remain in the same place when the page is scrolled.
Which CSS positioning scheme should this developer use?
A) Static
B) Absolute
C) Relative
D) Fixed -
Answer✅
Fixed
Quiz_________________?
A developer needs two pixels of space on the left side of content relative to the border.
Which CSS property should this developer use?
A) padding-left:2px;
B) border:2px;
C) margin-left:2px;
D) float:left; -
Answer✅
padding-left:2px;
Quiz_________________?
A user's information defaults onto a form. Which event triggers if the user keys in a new
value in the First Name field?
1
, A) change
B) reset
C) unload
D) abort -
Answer✅
change
Quiz_________________?
A web designer creates the following animation by using CSS3:
#texteffect {
position: relative;
animation-name: scroll;
animation-duration: 5s;
animation-timing-function: linear;
animation-play-state: running;
}
@keyframes scroll {
from {left: 0px;}
to {left: 200px;}
}
How does the content of the element move when the page loads?
A) From left to right one time
B) From left to right, repeating for as long as the page displays
C) From top to bottom one time
D) From top to bottom, repeating for as long as the page displays -
Answer✅
From left to right one time
Quiz_________________?
2
, A web designer reviews the following CSS3 code:
#brand {
font-weight: bold;
}
Which paragraph element will it select?
A) <p class="brand">Web Design</p>
B) <p id="brand">Web Design</p>
C) <p style="brand">Web Design</p>
D) <p id="#brand">Web Design</p> -
Answer✅
<p id="brand">Web Design</p>
Quiz_________________?
A web developer needs to play an audio file endlessly. The developer writes the following
HTML code:
<audio>
<source src = "media/audio.ogg" type="audio/ogg" />
</audio>
Which attribute should this developer use?
A) controls
B) autoplay
C) loop
D) src -
Answer✅
loop
Quiz_________________?
A web page has a section that contains an <aside> element. The element is always 10 pixels
from the right and 50 pixels from the top of the browser. Which type of layout positioning
does the <aside> element use?
3